]> granicus.if.org Git - php/commitdiff
For 5.4, fix C++-style comments. For trunk, forward-port build fix.
authorGwynne Raskind <gwynne@php.net>
Sun, 7 Aug 2011 16:31:21 +0000 (16:31 +0000)
committerGwynne Raskind <gwynne@php.net>
Sun, 7 Aug 2011 16:31:21 +0000 (16:31 +0000)
Zend/zend_operators.h

index 8e3a37eee75ff179b4411e2637fa3e6e59e582eb..9b0c790f8a1b1b0b73c61cd87eafd10bdd3b7dc4 100644 (file)
@@ -615,7 +615,11 @@ static zend_always_inline int fast_sub_function(zval *result, zval *op1, zval *o
                        "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 @@ static zend_always_inline int fast_sub_function(zval *result, zval *op1, zval *o
                        "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:"