summaryrefslogtreecommitdiff
path: root/Zend/zend_portability.h
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@zend.com>2017-11-28 12:37:00 +0300
committerDmitry Stogov <dmitry@zend.com>2017-11-28 12:37:00 +0300
commit6acfade8a1084202229929ecb54c01f9ef1059d2 (patch)
tree04500851930e025c1b8921afe8c773efb05db5c7 /Zend/zend_portability.h
parent4a2ccd908be193fdc34a91306febb7153cc461eb (diff)
downloadphp-git-6acfade8a1084202229929ecb54c01f9ef1059d2.tar.gz
Prefer "GNU asm goto" to __builtin_saddl_overflow() for overflow detection. This allows generation of significantly better code.
Diffstat (limited to 'Zend/zend_portability.h')
-rw-r--r--Zend/zend_portability.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/Zend/zend_portability.h b/Zend/zend_portability.h
index 0b5e8fa0a7..2003734f0c 100644
--- a/Zend/zend_portability.h
+++ b/Zend/zend_portability.h
@@ -220,11 +220,15 @@ char *alloca();
#if defined(__GNUC__) && ZEND_GCC_VERSION >= 4003
# define ZEND_ATTRIBUTE_UNUSED __attribute__((unused))
# define ZEND_ATTRIBUTE_UNUSED_LABEL __attribute__((cold, unused));
+# define ZEND_ATTRIBUTE_COLD_LABEL __attribute__((cold));
+# define ZEND_ATTRIBUTE_HOT_LABEL __attribute__((hot));
# define ZEND_COLD __attribute__((cold))
# define ZEND_HOT __attribute__((hot))
#else
# define ZEND_ATTRIBUTE_UNUSED
# define ZEND_ATTRIBUTE_UNUSED_LABEL
+# define ZEND_ATTRIBUTE_COLD_LABEL
+# define ZEND_ATTRIBUTE_HOT_LABEL
# define ZEND_COLD
# define ZEND_HOT
#endif