]> granicus.if.org Git - python/commitdiff
Backport 52506:
authorNeal Norwitz <nnorwitz@gmail.com>
Sat, 28 Oct 2006 21:39:31 +0000 (21:39 +0000)
committerNeal Norwitz <nnorwitz@gmail.com>
Sat, 28 Oct 2006 21:39:31 +0000 (21:39 +0000)
Don't inline Py_ADDRESS_IN_RANGE with gcc 4+ either.

Objects/obmalloc.c

index 0ca8f2bcaf20498c07c849d12b70c4269bd33113..840570e06cdd92be929a0221e5d1dba874c0928a 100644 (file)
@@ -691,7 +691,8 @@ extremely desirable that it be this fast.
 
 #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