mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-30 08:40:07 +00:00
4a2dd41cb5
The configure fragment for powerpc64le contains a test for the presence
of several compiler builtins and of the __float128 type, which are
provided by GCC 6.2 for powerpc64le. Since this configure test was
added, the compiler version required to build glibc for powerpc64le was
different than that required for the other architectures.
Now that glibc requires GCC 6.2 globally (since commit ID 4dcbbc3b28
),
this patch removes the powerpc64le-specific test.
Even tough the configure test checks for compiler features rather than
compiler version, the intent of the test was to stop build attempts at
early stages, if they had been configured with a too old compiler. It
was not the intention of the test to detect compiler breakage (such as
the removal of the required compiler features in future GCC versions),
and glibc is not the place to test for compiler regressions, anyway.
Tested for powerpc64le with GCC 6.2 (built with build-many-glibcs.py).
Reviewed-by: Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
21 lines
738 B
Plaintext
21 lines
738 B
Plaintext
GLIBC_PROVIDES dnl See aclocal.m4 in the top level source directory.
|
|
# Local configure fragment for sysdeps/powerpc/powerpc64le.
|
|
|
|
dnl Require at least POWER8 on powerpc64le
|
|
OLD_CFLAGS="$CFLAGS"
|
|
CFLAGS="$CFLAGS $libc_cv_cc_submachine"
|
|
AC_CACHE_CHECK([if the target machine is at least POWER8],
|
|
libc_cv_target_power8_ok, [
|
|
AC_COMPILE_IFELSE([AC_LANG_SOURCE([[
|
|
#ifndef _ARCH_PWR8
|
|
#error invalid target architecture
|
|
#endif
|
|
]])],
|
|
[libc_cv_target_power8_ok=yes],
|
|
[libc_cv_target_power8_ok=no])])
|
|
AS_IF([test "$libc_cv_target_power8_ok" != "yes"],
|
|
[critic_missing="$critic_missing POWER8 or newer is required on powerpc64le."])
|
|
CFLAGS="$OLD_CFLAGS"
|
|
|
|
test -n "$critic_missing" && AC_MSG_ERROR([*** $critic_missing])
|