com php-src: Fixed bug #69896 'asm' operand has impossible constraints: Zend/zend_operators.h
| From: | Anatol Belski | Date: | Sun, 02 Aug 2015 07:25:24 +0000 |
| Subject: | com php-src: Fixed bug #69896 'asm' operand has impossible constraints: Zend/zend_operators.h | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-88269@lists.php.net to get a copy of this message | ||
Commit: ee2e1691080dad2a3110107dd8bd02ee23b41fa0
Author: Anatol Belski <ab@php.net> Sun, 2 Aug 2015 09:25:24 +0200
Parents: cddef309408d6bdfe78bba62dd7f87a698983e26
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=ee2e1691080dad2a3110107dd8bd02ee23b41fa0
Log:
Fixed bug #69896 'asm' operand has impossible constraints
Given it's an issue with 32-bit gcc-4.8, asm is disabled for the
breaking parts.
Bugs:
https://bugs.php.net/69896
Changed paths:
M Zend/zend_operators.h
Diff:
diff --git a/Zend/zend_operators.h b/Zend/zend_operators.h
index f46a729..ecba9cf 100644
--- a/Zend/zend_operators.h
+++ b/Zend/zend_operators.h
@@ -510,7 +510,7 @@ static zend_always_inline void fast_long_decrement_function(zval *op1)
static zend_always_inline void fast_long_add_function(zval *result, zval *op1, zval *op2)
{
-#if defined(__GNUC__) && defined(__i386__)
+#if defined(__GNUC__) && defined(__i386__) && !(4 == __GNUC__ && 8 ==
__GNUC_MINOR__)
__asm__(
"movl (%1), %%eax\n\t"
"addl (%2), %%eax\n\t"
@@ -596,7 +596,7 @@ static zend_always_inline int fast_add_function(zval *result, zval *op1, zval *o
static zend_always_inline void fast_long_sub_function(zval *result, zval *op1, zval *op2)
{
-#if defined(__GNUC__) && defined(__i386__)
+#if defined(__GNUC__) && defined(__i386__) && !(4 == __GNUC__ && 8 ==
__GNUC_MINOR__)
__asm__(
"movl (%1), %%eax\n\t"
"subl (%2), %%eax\n\t"