From 90b0e779213de6aa6a500030f6da93d8d91cffbf Mon Sep 17 00:00:00 2001 From: David CARLIER Date: Wed, 25 Jan 2023 19:51:22 +0000 Subject: [PATCH] GNU compilers remove hot attribute proposal. (#8922) While the cold attribute has its place, the hot one however does one have real justification for use, even more so with modern toolchains. --- Zend/zend_portability.h | 4 ---- 1 file changed, 4 deletions(-) diff --git a/Zend/zend_portability.h b/Zend/zend_portability.h index 87ab51724bb..83b4079cb83 100644 --- a/Zend/zend_portability.h +++ b/Zend/zend_portability.h @@ -265,7 +265,6 @@ char *alloca(); #if defined(__GNUC__) && ZEND_GCC_VERSION >= 4003 # define ZEND_COLD __attribute__((cold)) -# define ZEND_HOT __attribute__((hot)) # ifdef __OPTIMIZE__ # define ZEND_OPT_SIZE __attribute__((optimize("Os"))) # define ZEND_OPT_SPEED __attribute__((optimize("Ofast"))) @@ -275,7 +274,6 @@ char *alloca(); # endif #else # define ZEND_COLD -# define ZEND_HOT # define ZEND_OPT_SIZE # define ZEND_OPT_SPEED #endif @@ -283,11 +281,9 @@ char *alloca(); #if defined(__GNUC__) && ZEND_GCC_VERSION >= 5000 # define ZEND_ATTRIBUTE_UNUSED_LABEL __attribute__((unused)); # define ZEND_ATTRIBUTE_COLD_LABEL __attribute__((cold)); -# define ZEND_ATTRIBUTE_HOT_LABEL __attribute__((hot)); #else # define ZEND_ATTRIBUTE_UNUSED_LABEL # define ZEND_ATTRIBUTE_COLD_LABEL -# define ZEND_ATTRIBUTE_HOT_LABEL #endif #if defined(__GNUC__) && ZEND_GCC_VERSION >= 3004 && defined(__i386__)