com php-src: Disable some "bad" GCC optimizations: Zend/zend_ execute.c

From: Date: Thu, 14 Dec 2017 00:25:20 +0000
Subject: com php-src: Disable some "bad" GCC optimizations: Zend/zend_ execute.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-100575@lists.php.net to get a copy of this message
Commit: 4d19bc2279ddbc9c4a07814b3c1b468938d44eae Author: Dmitry Stogov <dmitry@zend.com> Thu, 14 Dec 2017 03:25:20 +0300 Parents: dd1050fa6cab48f0d26db32cf0a4007b40010311 Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=4d19bc2279ddbc9c4a07814b3c1b468938d44eae Log: Disable some "bad" GCC optimizations Changed paths: M Zend/zend_execute.c Diff: diff --git a/Zend/zend_execute.c b/Zend/zend_execute.c index fcc78f2..d2dad66 100644 --- a/Zend/zend_execute.c +++ b/Zend/zend_execute.c @@ -3050,8 +3050,18 @@ ZEND_API int ZEND_FASTCALL zend_do_fcall_overloaded(zend_execute_data *call, zva } \ } while (0) +#if ZEND_GCC_VERSION >= 4000 +# pragma GCC push_options +# pragma GCC optimize("no-gcse") +# pragma GCC optimize("no-ivopts") +#endif + #include "zend_vm_execute.h" +#if ZEND_GCC_VERSION >= 4000 +# pragma GCC pop_options +#endif + ZEND_API int zend_set_user_opcode_handler(zend_uchar opcode, user_opcode_handler_t handler) { if (opcode != ZEND_USER_OPCODE) {

« previous php.cvs (#100575) next »