php7: fix syntax issue in MIPS code for pcre 5335/head
authorPhilip Prindeville <philipp@redfish-solutions.com>
Sat, 30 Dec 2017 00:39:30 +0000 (17:39 -0700)
committerPhilip Prindeville <philipp@redfish-solutions.com>
Sat, 30 Dec 2017 00:41:12 +0000 (17:41 -0700)
Copied from upstream (master).

Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
lang/php7/patches/1010-pcrelib-NativeMIPS.patch [new file with mode: 0644]

diff --git a/lang/php7/patches/1010-pcrelib-NativeMIPS.patch b/lang/php7/patches/1010-pcrelib-NativeMIPS.patch
new file mode 100644 (file)
index 0000000..7a1ac46
--- /dev/null
@@ -0,0 +1,17 @@
+--- a/ext/pcre/pcrelib/sljit/sljitNativeMIPS_common.c  2017-11-28 02:22:57.000000000 -0700
++++ b/ext/pcre/pcrelib/sljit/sljitNativeMIPS_common.c  2017-12-29 17:35:44.231934114 -0700
+@@ -498,12 +498,13 @@ SLJIT_API_FUNC_ATTRIBUTE void* sljit_gen
+ SLJIT_API_FUNC_ATTRIBUTE sljit_s32 sljit_has_cpu_feature(sljit_s32 feature_type)
+ {
++      sljit_sw fir = 0;
++
+       switch (feature_type) {
+       case SLJIT_HAS_FPU:
+ #ifdef SLJIT_IS_FPU_AVAILABLE
+               return SLJIT_IS_FPU_AVAILABLE;
+ #elif defined(__GNUC__)
+-              sljit_sw fir;
+               asm ("cfc1 %0, $0" : "=r"(fir));
+               return (fir >> 22) & 0x1;
+ #else