mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
Define PHP_HAVE_BUILTIN_EXPECT for Clang on Windows (GH-17457)
Clang supports `__builtin_expect()` at least as of 4.0.0, which is the (theoretical) minimum required on Windows, so we define it unconditionally. This also solves some macro redefinition warnings in JIT-IR.
This commit is contained in:
committed by
GitHub
parent
e64f674237
commit
8a9095a92e
@@ -370,6 +370,7 @@ if (VS_TOOLSET) {
|
||||
}
|
||||
}
|
||||
} else if (CLANG_TOOLSET) {
|
||||
AC_DEFINE("PHP_HAVE_BUILTIN_EXPECT", 1, "Define to 1 if the compiler supports '__builtin_expect'.");
|
||||
AC_DEFINE("PHP_HAVE_BUILTIN_SADDL_OVERFLOW", 1, "Define to 1 if the compiler supports '__builtin_saddl_overflow'.");
|
||||
AC_DEFINE("PHP_HAVE_BUILTIN_SADDLL_OVERFLOW", 1, "Define to 1 if the compiler supports '__builtin_saddll_overflow'.");
|
||||
AC_DEFINE("PHP_HAVE_BUILTIN_SSUBL_OVERFLOW", 1, "Define to 1 if the compiler supports '__builtin_ssubl_overflow'.");
|
||||
|
||||
Reference in New Issue
Block a user