Skip to content

Commit 90b0e77

Browse files
authored
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.
1 parent 48db342 commit 90b0e77

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

Zend/zend_portability.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,6 @@ char *alloca();
265265

266266
#if defined(__GNUC__) && ZEND_GCC_VERSION >= 4003
267267
# define ZEND_COLD __attribute__((cold))
268-
# define ZEND_HOT __attribute__((hot))
269268
# ifdef __OPTIMIZE__
270269
# define ZEND_OPT_SIZE __attribute__((optimize("Os")))
271270
# define ZEND_OPT_SPEED __attribute__((optimize("Ofast")))
@@ -275,19 +274,16 @@ char *alloca();
275274
# endif
276275
#else
277276
# define ZEND_COLD
278-
# define ZEND_HOT
279277
# define ZEND_OPT_SIZE
280278
# define ZEND_OPT_SPEED
281279
#endif
282280

283281
#if defined(__GNUC__) && ZEND_GCC_VERSION >= 5000
284282
# define ZEND_ATTRIBUTE_UNUSED_LABEL __attribute__((unused));
285283
# define ZEND_ATTRIBUTE_COLD_LABEL __attribute__((cold));
286-
# define ZEND_ATTRIBUTE_HOT_LABEL __attribute__((hot));
287284
#else
288285
# define ZEND_ATTRIBUTE_UNUSED_LABEL
289286
# define ZEND_ATTRIBUTE_COLD_LABEL
290-
# define ZEND_ATTRIBUTE_HOT_LABEL
291287
#endif
292288

293289
#if defined(__GNUC__) && ZEND_GCC_VERSION >= 3004 && defined(__i386__)

0 commit comments

Comments
 (0)