From: Andrei Zmievski Date: Fri, 15 Dec 2006 22:47:09 +0000 (+0000) Subject: __builtin_expect() exists only in GCC 3.0 and higher. X-Git-Tag: RELEASE_1_0_0RC1~688 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=03547341ecdbe80a0360e1f0ad5dcb9bb9946572;p=php __builtin_expect() exists only in GCC 3.0 and higher. --- diff --git a/Zend/zend_alloc.c b/Zend/zend_alloc.c index d6af6118dd..1bd6731da7 100644 --- a/Zend/zend_alloc.c +++ b/Zend/zend_alloc.c @@ -66,7 +66,7 @@ void zend_debug_alloc_output(char *format, ...) } #endif -#if defined(__GNUC__) && !defined(__INTEL_COMPILER) && !defined(DARWIN) && !defined(__hpux) && !defined(_AIX) +#if (defined (__GNUC__) && __GNUC__ > 2 ) && !defined(__INTEL_COMPILER) && !defined(DARWIN) && !defined(__hpux) && !defined(_AIX) # define EXPECTED(condition) __builtin_expect(condition, 1) # define UNEXPECTED(condition) __builtin_expect(condition, 0) static void zend_mm_panic(const char *message) __attribute__ ((noreturn));