Skip to content

Commit d93800e

Browse files
Freakydevnexen
authored andcommittedSep 24, 2023
Fix GH-12273 - configure __builtin_cpu_init() check
__builtin_cpu_init() is documented as having a void return type. It happens to return int on gcc, but is void on clang. Close GH-122274
1 parent a80db7b commit d93800e

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed
 

‎NEWS

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ PHP NEWS
77
(rioderelfte)
88
. Fixed bug GH-12215 (Module entry being overwritten causes type errors in
99
ext/dom). (nielsdos)
10+
. Fixed bug GH-12273 (__builtin_cpu_init check). (Freaky)
1011

1112
- Filter:
1213
. Fix explicit FILTER_REQUIRE_SCALAR with FILTER_CALLBACK (ilutov)

‎build/php.m4

+1-1
Original file line numberDiff line numberDiff line change
@@ -2700,7 +2700,7 @@ AC_DEFUN([PHP_CHECK_BUILTIN_CPU_INIT], [
27002700
AC_MSG_CHECKING([for __builtin_cpu_init])
27012701
27022702
AC_LINK_IFELSE([AC_LANG_PROGRAM([], [[
2703-
return __builtin_cpu_init()? 1 : 0;
2703+
__builtin_cpu_init();
27042704
]])], [
27052705
have_builtin_cpu_init=1
27062706
AC_MSG_RESULT([yes])

0 commit comments

Comments
 (0)
Please sign in to comment.