Patch zend_cpuinfo.c.patch for Compile Failure Bug #76654
Patch version 2018-11-15 09:18 UTC
Return to Bug #76654
| Download this patch
Patch Revisions:
2018-11-15 09:18 UTC | 2018-11-15 07:11 UTCDeveloper: php-bugs-2018@ryandesign.com
@@ -36,11 +36,23 @@
}
# else
static void __zend_cpuid(uint32_t func, uint32_t subfunc, zend_cpu_info *cpuinfo) {
+#ifdef __i386__
+#if defined(__i386__) && (defined(__pic__) || defined(__PIC__))
+ /* PIC on i386 uses %ebx, so preserve it. */
+ __asm__ __volatile__ (
+ "pushl %%ebx\n"
+ "cpuid\n"
|