dmitry Mon Dec 18 08:59:40 2006 UTC
Modified files: (Branch: PHP_5_2)
/ZendEngine2 zend_alloc.c
Log:
MFH: __builtin_expect() exists only in GCC 3.0 and higher
http://cvs.php.net/viewvc.cgi/ZendEngine2/zend_alloc.c?r1=1.144.2.3.2.24&r2=1.144.2.3.2.25&diff_format=u
Index: ZendEngine2/zend_alloc.c
diff -u ZendEngine2/zend_alloc.c:1.144.2.3.2.24
ZendEngine2/zend_alloc.c:1.144.2.3.2.25
--- ZendEngine2/zend_alloc.c:1.144.2.3.2.24 Fri Dec 15 17:03:42 2006
+++ ZendEngine2/zend_alloc.c Mon Dec 18 08:59:40 2006
@@ -18,7 +18,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: zend_alloc.c,v 1.144.2.3.2.24 2006/12/15 17:03:42 andi Exp $ */
+/* $Id: zend_alloc.c,v 1.144.2.3.2.25 2006/12/18 08:59:40 dmitry Exp $ */
#include "zend.h"
#include "zend_alloc.h"
@@ -66,7 +66,7 @@
}
#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));
--
Zend Engine CVS Mailing List (http://cvs.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
|