com php-src: Fixed global register checking: Zend/Zend.m4

From: Date: Thu, 19 Mar 2015 08:54:13 +0000
Subject: com php-src: Fixed global register checking: Zend/Zend.m4
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-85647@lists.php.net to get a copy of this message
Commit: 61e31b6e2932662fd30d315a533146c69ea61b20 Author: Xinchen Hui <laruence@php.net> Thu, 19 Mar 2015 16:54:13 +0800 Parents: 9c5ded46d7c2d94d945aa05fb78de4f7ecd116fa Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=61e31b6e2932662fd30d315a533146c69ea61b20 Log: Fixed global register checking Changed paths: M Zend/Zend.m4 Diff: diff --git a/Zend/Zend.m4 b/Zend/Zend.m4 index a88be8d..1114266 100644 --- a/Zend/Zend.m4 +++ b/Zend/Zend.m4 @@ -421,6 +421,11 @@ AC_MSG_CHECKING(for global register variables support) if test "$ZEND_GCC_GLOBAL_REGS" != "no"; then AC_TRY_COMPILE([ ],[ +#if defined(__GNUC__) +# define ZEND_GCC_VERSION (__GNUC__ * 1000 + __GNUC_MINOR__) +#else +# define ZEND_GCC_VERSION 0 +#endif #if defined(__GNUC__) && ZEND_GCC_VERSION >= 4008 && defined(i386) # define ZEND_VM_FP_GLOBAL_REG "%esi" # define ZEND_VM_IP_GLOBAL_REG "%edi"

« previous php.cvs (#85647) next »