mirror of
https://github.com/php/php-src.git
synced 2025-08-15 13:38:49 +02:00
Revert "Use __attribute__((assume())) in ZEND_ASSUME when available"
This reverts commit bf4ec8bd9d
.
Partial revert, keep the phpdbg changes.
This commit is contained in:
parent
5752bbdad5
commit
2f894389b6
1 changed files with 0 additions and 3 deletions
|
@ -89,9 +89,6 @@
|
|||
|
||||
#if defined(ZEND_WIN32) && !defined(__clang__)
|
||||
# define ZEND_ASSUME(c) __assume(c)
|
||||
#elif defined(__GNUC__) && !defined(__clang__) && __GNUC__ >= 13
|
||||
/* GCC emits a warning when __attribute__ appears directly after a label, so we need a do-while loop. */
|
||||
# define ZEND_ASSUME(c) do { __attribute__((assume(c))); } while (0)
|
||||
#elif defined(__clang__) && __has_builtin(__builtin_assume)
|
||||
# pragma clang diagnostic ignored "-Wassume"
|
||||
# define ZEND_ASSUME(c) __builtin_assume(c)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue