17 lines
691 B
Diff
17 lines
691 B
Diff
--- a/Zend/zend_portability.h 2020-07-02 15:32:33.663651057 +0300
|
|
+++ b/Zend/zend_portability.h 2020-07-02 16:22:01.111645754 +0300
|
|
@@ -228,9 +228,12 @@
|
|
#if defined(__GNUC__) && ZEND_GCC_VERSION >= 4003
|
|
# define ZEND_COLD __attribute__((cold))
|
|
# define ZEND_HOT __attribute__((hot))
|
|
-# ifdef __OPTIMIZE__
|
|
+# if defined(__OPTIMIZE__) && !defined(__LCC__)
|
|
# define ZEND_OPT_SIZE __attribute__((optimize("Os")))
|
|
# define ZEND_OPT_SPEED __attribute__((optimize("Ofast")))
|
|
+# elif defined(__OPTIMIZE__)
|
|
+# define ZEND_OPT_SIZE __attribute__((optimize(2)))
|
|
+# define ZEND_OPT_SPEED __attribute__((optimize("-O3 -ffast-math")))
|
|
# else
|
|
# define ZEND_OPT_SIZE
|
|
# define ZEND_OPT_SPEED
|