php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #70015
Patch fix-asm-constraints-in-aarch64-multiply-macro revision 2016-04-25 10:15 UTC by schwab at linux-m68k dot org
Patch X-to-r-to-avoid-macro-expansion-error.patch revision 2015-07-10 06:09 UTC by rongqing dot li at windriver dot com

Patch X-to-r-to-avoid-macro-expansion-error.patch for Compile Failure Bug #70015

Patch version 2015-07-10 06:09 UTC

Return to Bug #70015 | Download this patch
This patch is obsolete

Obsoleted by patches:

Patch Revisions:

Developer: rongqing.li@windriver.com

Modify X to r to avoid macro expansion error

Upstream-Status: Pending [php]

Author: Huang Yuanjie <yuanjie.huang@windriver.com>
Signed-off-by: Jian Liu <jian.liu@windriver.com>

diff -Nur php-5.5.15.orig/Zend/zend_multiply.h php-5.5.15/Zend/zend_multiply.h
--- php-5.5.15.orig/Zend/zend_multiply.h	2015-01-23 16:37:19.992619803 +0800
+++ php-5.5.15/Zend/zend_multiply.h	2015-01-23 16:38:50.005644880 +0800
@@ -63,7 +63,7 @@
 		"smulh %1, %2, %3\n"										\
 		"sub %1, %1, %0, asr #63\n"									\
 			: "=X"(__tmpvar), "=X"(usedval)							\
-			: "X"(a), "X"(b));										\
+			: "r"(a), "r"(b));										\
 	if (usedval) (dval) = (double) (a) * (double) (b);				\
 	else (lval) = __tmpvar;											\
 } while (0)
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 08:01:28 2024 UTC