Revert "Use __attribute__((assume())) in ZEND_ASSUME when available"

This reverts commit bf4ec8bd9d.

Partial revert, keep the phpdbg changes.
This commit is contained in:
Ilija Tovilo 2024-02-08 11:58:22 +01:00
parent 5752bbdad5
commit 2f894389b6
No known key found for this signature in database
GPG key ID: A4F5D403F118200A

View file

@ -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)