commit | ca63121553ac1ce98d7c2608e99fc813651524d3 | [log] [tgz] |
---|---|---|
author | Neal Norwitz <nnorwitz@gmail.com> | Sat Oct 28 21:39:31 2006 +0000 |
committer | Neal Norwitz <nnorwitz@gmail.com> | Sat Oct 28 21:39:31 2006 +0000 |
tree | d69f8ef2ed40ea7f6b0e45163c6175aa9eda1868 | |
parent | e0cf624747a35a6db2f632607e7788b8e66d0954 [diff] |
Backport 52506: Don't inline Py_ADDRESS_IN_RANGE with gcc 4+ either.
diff --git a/Objects/obmalloc.c b/Objects/obmalloc.c index 0ca8f2b..840570e 100644 --- a/Objects/obmalloc.c +++ b/Objects/obmalloc.c
@@ -691,7 +691,8 @@ #undef Py_ADDRESS_IN_RANGE -#if defined(__GNUC__) && (__GNUC__ == 3) && (__GNUC_MINOR__ >= 1) +#if defined(__GNUC__) && ((__GNUC__ == 3) && (__GNUC_MINOR__ >= 1) || \ + (__GNUC__ >= 4)) #define Py_NO_INLINE __attribute__((__noinline__)) #else #define Py_NO_INLINE