From: Neal Norwitz Date: Sat, 28 Oct 2006 21:39:31 +0000 (+0000) Subject: Backport 52506: X-Git-Tag: v2.5.1c1~284 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ca63121553ac1ce98d7c2608e99fc813651524d3;p=python Backport 52506: Don't inline Py_ADDRESS_IN_RANGE with gcc 4+ either. --- diff --git a/Objects/obmalloc.c b/Objects/obmalloc.c index 0ca8f2bcaf..840570e06c 100644 --- a/Objects/obmalloc.c +++ b/Objects/obmalloc.c @@ -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