svn: /php/php-src/branches/PHP_5_4/Zend/ zend_operators.h
| From: | Gwynne Raskind | Date: | Sun, 07 Aug 2011 05:20:49 +0000 |
| Subject: | svn: /php/php-src/branches/PHP_5_4/Zend/ zend_operators.h | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-65734@lists.php.net to get a copy of this message | ||
gwynne Sun, 07 Aug 2011 05:20:49 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=314400
Log:
Fix build under Clang 2.9 - see LLVM bug #9164 (http://llvm.org/bugs/show_bug.cgi?id=9164). Tested
with GCC and Clang on Darwin and Ubuntu.
Bug: https://bugs.php.net/9164 (Bogus) wrong variable is
initialized
Changed paths:
U php/php-src/branches/PHP_5_4/Zend/zend_operators.h
Modified: php/php-src/branches/PHP_5_4/Zend/zend_operators.h
===================================================================
--- php/php-src/branches/PHP_5_4/Zend/zend_operators.h 2011-08-07 05:19:55 UTC (rev 314399)
+++ php/php-src/branches/PHP_5_4/Zend/zend_operators.h 2011-08-07 05:20:49 UTC (rev 314400)
@@ -615,7 +615,11 @@
"0:\n\t"
"fildl (%2)\n\t"
"fildl (%1)\n\t"
+#if defined(__clang__) && (__clang_major__ < 2 || (__clang_major__ == 2 &&
__clang_minor__ < 10))
+ "fsubp %%st(1), %%st\n\t" // LLVM bug #9164
+#else
"fsubp %%st, %%st(1)\n\t"
+#endif
"movb $0x2,0xc(%0)\n\t"
"fstpl (%0)\n"
"1:"
@@ -635,7 +639,11 @@
"0:\n\t"
"fildq (%2)\n\t"
"fildq (%1)\n\t"
+#if defined(__clang__) && (__clang_major__ < 2 || (__clang_major__ == 2 &&
__clang_minor__ < 10))
+ "fsubp %%st(1), %%st\n\t" // LLVM bug #9164
+#else
"fsubp %%st, %%st(1)\n\t"
+#endif
"movb $0x2,0x14(%0)\n\t"
"fstpl (%0)\n"
"1:"