diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2019-10-31 11:27:53 +0100 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2019-10-31 11:27:53 +0100 |
commit | edccf32f7f36a8bc759b9482737e0c3efcb3a005 (patch) | |
tree | f5e10ad5c6c8349d0975d4267efefb6f98ccfeff /build/php.m4 | |
parent | 333d607d47ca6eec96637c1c8686591dec6f5a0b (diff) | |
download | php-git-edccf32f7f36a8bc759b9482737e0c3efcb3a005.tar.gz |
Remove configure checks for supported instruction sets
These were checking whether the instruction set is supported by
the host CPU, however they were only used to condition on whether
this instruction set is targeted at all. It would still use dynamic
dispatch (e.g. based on ifunc resolvers) to select the actual
implementation. Whether the target is guaranteed to support the
instruction set without dispatch is determined based on pre-defined
macros like __SSE2__.
This removes the configure-time builtin cpu checks to remove
confusion. Additionally this allows targeting an architecture that
is newer than the host architecture.
Diffstat (limited to 'build/php.m4')
-rw-r--r-- | build/php.m4 | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/build/php.m4 b/build/php.m4 index e91ef9887c..fd37373f20 100644 --- a/build/php.m4 +++ b/build/php.m4 @@ -2675,30 +2675,6 @@ AC_DEFUN([PHP_CHECK_BUILTIN_CPU_SUPPORTS], [ ]) dnl -dnl PHP_CHECK_CPU_SUPPORTS -dnl -AC_DEFUN([PHP_CHECK_CPU_SUPPORTS], [ - AC_REQUIRE([PHP_CHECK_BUILTIN_CPU_INIT]) - AC_REQUIRE([PHP_CHECK_BUILTIN_CPU_SUPPORTS]) - have_ext_instructions=0 - if test $have_builtin_cpu_supports = 1; then - AC_MSG_CHECKING([for $1 instructions supports]) - AC_RUN_IFELSE([AC_LANG_SOURCE([[ -int main() { - return __builtin_cpu_supports("$1")? 0 : 1; -} - ]])], [ - have_ext_instructions=1 - AC_MSG_RESULT([yes]) - ], [ - AC_MSG_RESULT([no]) - ], [AC_MSG_RESULT([no])]) - fi - AC_DEFINE_UNQUOTED(AS_TR_CPP([PHP_HAVE_$1_INSTRUCTIONS]), - [$have_ext_instructions], [Whether the compiler supports $1 instructions]) -]) - -dnl dnl PHP_PATCH_CONFIG_HEADERS([FILE]) dnl dnl PACKAGE_* symbols are automatically defined by Autoconf. When including |