]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Remove configure tests for SSE4 support.
authorJoseph Myers <joseph@codesourcery.com>
Tue, 6 Oct 2015 20:47:40 +0000 (20:47 +0000)
committerJoseph Myers <joseph@codesourcery.com>
Tue, 6 Oct 2015 20:47:40 +0000 (20:47 +0000)
GCC added support for -msse4 in version 4.3.  Thus the configure tests
for it are obsolete, and this patch removes them.

Tested for x86_64 and x86 (testsuite, and that installed stripped
shared libraries are unchanged by this patch).

* sysdeps/i386/configure.ac (libc_cv_cc_sse4): Remove configure
test.
* sysdeps/i386/configure: Regenerated.
* sysdeps/i386/i686/multiarch/Makefile
[$(config-cflags-sse4) = yes]: Make code unconditional.
* sysdeps/i386/i686/multiarch/strcspn.S [HAVE_SSE4_SUPPORT]:
Likewise.
* sysdeps/i386/i686/multiarch/strspn.S [HAVE_SSE4_SUPPORT]:
Likewise.
* sysdeps/x86_64/configure.ac (libc_cv_cc_sse4): Remove configure
test.
* sysdeps/x86_64/configure: Regenerated.
* sysdeps/x86_64/multiarch/Makefile [$(config-cflags-sse4) = yes]:
Make code unconditional.
* sysdeps/x86_64/multiarch/strcspn.S [HAVE_SSE4_SUPPORT]:
Likewise.
* sysdeps/x86_64/multiarch/strspn.S [HAVE_SSE4_SUPPORT]: Likewise.
* config.h.in (HAVE_SSE4_SUPPORT): Remove #undef.

12 files changed:
ChangeLog
config.h.in
sysdeps/i386/configure
sysdeps/i386/configure.ac
sysdeps/i386/i686/multiarch/Makefile
sysdeps/i386/i686/multiarch/strcspn.S
sysdeps/i386/i686/multiarch/strspn.S
sysdeps/x86_64/configure
sysdeps/x86_64/configure.ac
sysdeps/x86_64/multiarch/Makefile
sysdeps/x86_64/multiarch/strcspn.S
sysdeps/x86_64/multiarch/strspn.S

index 09c47efcad316ee6841dc26e64e2b5312b7cb33a..2447be7c5bb61ff12e08957e3a501cd81e6f04a1 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,24 @@
 2015-10-06  Joseph Myers  <joseph@codesourcery.com>
 
+       * sysdeps/i386/configure.ac (libc_cv_cc_sse4): Remove configure
+       test.
+       * sysdeps/i386/configure: Regenerated.
+       * sysdeps/i386/i686/multiarch/Makefile
+       [$(config-cflags-sse4) = yes]: Make code unconditional.
+       * sysdeps/i386/i686/multiarch/strcspn.S [HAVE_SSE4_SUPPORT]:
+       Likewise.
+       * sysdeps/i386/i686/multiarch/strspn.S [HAVE_SSE4_SUPPORT]:
+       Likewise.
+       * sysdeps/x86_64/configure.ac (libc_cv_cc_sse4): Remove configure
+       test.
+       * sysdeps/x86_64/configure: Regenerated.
+       * sysdeps/x86_64/multiarch/Makefile [$(config-cflags-sse4) = yes]:
+       Make code unconditional.
+       * sysdeps/x86_64/multiarch/strcspn.S [HAVE_SSE4_SUPPORT]:
+       Likewise.
+       * sysdeps/x86_64/multiarch/strspn.S [HAVE_SSE4_SUPPORT]: Likewise.
+       * config.h.in (HAVE_SSE4_SUPPORT): Remove #undef.
+
        * scripts/rpm2dynsym.sh: Remove file.
 
 2015-10-06  Florian Weimer  <fweimer@redhat.com>
index 865eaf3855190295150c6758a919a9de15873a01..76633760327d19bf2f40e5bd0efbf1f7ce614908 100644 (file)
@@ -76,9 +76,6 @@
 /* Define if _rtld_local structure should be forced into .sdata section.  */
 #undef HAVE_SDATA_SECTION
 
-/* Define if gcc supports SSE4.  */
-#undef HAVE_SSE4_SUPPORT
-
 /* Define if gcc supports AVX.  */
 #undef HAVE_AVX_SUPPORT
 
index ab66c081609c9b70699b7048fce52153a2efda67..8a7837ec468473b2c377f710300623c900f7207d 100644 (file)
@@ -92,32 +92,6 @@ fi
 
 
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSE4 support" >&5
-$as_echo_n "checking for SSE4 support... " >&6; }
-if ${libc_cv_cc_sse4+:} false; then :
-  $as_echo_n "(cached) " >&6
-else
-  if { ac_try='${CC-cc} -msse4 -xc /dev/null -S -o /dev/null'
-  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
-  (eval $ac_try) 2>&5
-  ac_status=$?
-  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
-  test $ac_status = 0; }; }; then :
-  libc_cv_cc_sse4=yes
-else
-  libc_cv_cc_sse4=no
-fi
-
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_sse4" >&5
-$as_echo "$libc_cv_cc_sse4" >&6; }
-if test $libc_cv_cc_sse4 = yes; then
-  $as_echo "#define HAVE_SSE4_SUPPORT 1" >>confdefs.h
-
-fi
-config_vars="$config_vars
-config-cflags-sse4 = $libc_cv_cc_sse4"
-
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler -mtune=i686 support" >&5
 $as_echo_n "checking for assembler -mtune=i686 support... " >&6; }
 if ${libc_cv_as_i686+:} false; then :
index a3f3067fb7571280fb2b78493ce9fd179d102b88..e7af05600fa8822e28aac6b03bf6419595cdcdef 100644 (file)
@@ -34,15 +34,6 @@ AC_CHECK_HEADER([cpuid.h], ,
   [AC_MSG_ERROR([gcc must provide the <cpuid.h> header])],
   [/* No default includes.  */])
 
-dnl Check if -msse4 works.
-AC_CACHE_CHECK(for SSE4 support, libc_cv_cc_sse4, [dnl
-LIBC_TRY_CC_OPTION([-msse4], [libc_cv_cc_sse4=yes], [libc_cv_cc_sse4=no])
-])
-if test $libc_cv_cc_sse4 = yes; then
-  AC_DEFINE(HAVE_SSE4_SUPPORT)
-fi
-LIBC_CONFIG_VAR([config-cflags-sse4], [$libc_cv_cc_sse4])
-
 dnl Check if -Wa,-mtune=i686 works.
 AC_CACHE_CHECK(for assembler -mtune=i686 support, libc_cv_as_i686, [dnl
 LIBC_TRY_CC_OPTION([-Wa,-mtune=i686],
index 31bfd39baef096e9fb138f2900266a1be2624553..7ccd9c7b797960c28cfc9ca8ac2b87dc4dfbb248 100644 (file)
@@ -24,15 +24,13 @@ sysdep_routines += bzero-sse2 memset-sse2 memcpy-ssse3 mempcpy-ssse3 \
                   strncase_l-c strncase-c strncase_l-ssse3 \
                   strcasecmp_l-sse4 strncase_l-sse4 \
                   bcopy-sse2-unaligned memcpy-sse2-unaligned \
-                  mempcpy-sse2-unaligned memmove-sse2-unaligned
-ifeq (yes,$(config-cflags-sse4))
-sysdep_routines += strcspn-c strpbrk-c strspn-c
+                  mempcpy-sse2-unaligned memmove-sse2-unaligned \
+                  strcspn-c strpbrk-c strspn-c
 CFLAGS-varshift.c += -msse4
 CFLAGS-strcspn-c.c += -msse4
 CFLAGS-strpbrk-c.c += -msse4
 CFLAGS-strspn-c.c += -msse4
 endif
-endif
 
 ifeq ($(subdir),wcsmbs)
 sysdep_routines += wcscmp-sse2 wcscmp-c wcslen-sse2 wcslen-c \
index b669b9797a020c5b4c0981ed27bfe7c4f15a821a..985c66c6aadfa608f3a25fe04fe38063e867597b 100644 (file)
@@ -19,9 +19,6 @@
    <http://www.gnu.org/licenses/>.  */
 
 #include <config.h>
-
-#ifdef HAVE_SSE4_SUPPORT
-
 #include <sysdep.h>
 #include <init-arch.h>
 
@@ -71,8 +68,6 @@ END(STRCSPN)
        .globl __GI_STRCSPN; __GI_STRCSPN = STRCSPN_IA32
 #endif
 
-#endif /* HAVE_SSE4_SUPPORT */
-
 #ifdef USE_AS_STRPBRK
 #include "../../strpbrk.S"
 #else
index 4ba87be45bb54fd84663f9e61763c37037b1a339..5e48ea1350d484bd6ca5259800588d78551656e2 100644 (file)
@@ -19,9 +19,6 @@
    <http://www.gnu.org/licenses/>.  */
 
 #include <config.h>
-
-#ifdef HAVE_SSE4_SUPPORT
-
 #include <sysdep.h>
 #include <init-arch.h>
 
@@ -56,6 +53,4 @@ __strspn_ia32: cfi_startproc; \
        .globl __GI_strspn; __GI_strspn = __strspn_ia32
 #endif
 
-#endif /* HAVE_SSE4_SUPPORT */
-
 #include "../../strspn.S"
index 552f535ac6af9682646f770d86634d0eb386da28..1f54c76f5ff18359863d1bbdf35643ac6f6e5b8e 100644 (file)
@@ -43,32 +43,6 @@ fi
 
 
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSE4 support" >&5
-$as_echo_n "checking for SSE4 support... " >&6; }
-if ${libc_cv_cc_sse4+:} false; then :
-  $as_echo_n "(cached) " >&6
-else
-  if { ac_try='${CC-cc} -msse4 -xc /dev/null -S -o /dev/null'
-  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
-  (eval $ac_try) 2>&5
-  ac_status=$?
-  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
-  test $ac_status = 0; }; }; then :
-  libc_cv_cc_sse4=yes
-else
-  libc_cv_cc_sse4=no
-fi
-
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_sse4" >&5
-$as_echo "$libc_cv_cc_sse4" >&6; }
-if test $libc_cv_cc_sse4 = yes; then
-  $as_echo "#define HAVE_SSE4_SUPPORT 1" >>confdefs.h
-
-fi
-config_vars="$config_vars
-config-cflags-sse4 = $libc_cv_cc_sse4"
-
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AVX support" >&5
 $as_echo_n "checking for AVX support... " >&6; }
 if ${libc_cv_cc_avx+:} false; then :
index e7208c9b302be1132f28e161a094f9399e5208c3..68824f7efe1a0e8613b00f7748d9dbeb4e911caf 100644 (file)
@@ -5,15 +5,6 @@ AC_CHECK_HEADER([cpuid.h], ,
   [AC_MSG_ERROR([gcc must provide the <cpuid.h> header])],
   [/* No default includes.  */])
 
-dnl Check if -msse4 works.
-AC_CACHE_CHECK(for SSE4 support, libc_cv_cc_sse4, [dnl
-LIBC_TRY_CC_OPTION([-msse4], [libc_cv_cc_sse4=yes], [libc_cv_cc_sse4=no])
-])
-if test $libc_cv_cc_sse4 = yes; then
-  AC_DEFINE(HAVE_SSE4_SUPPORT)
-fi
-LIBC_CONFIG_VAR([config-cflags-sse4], [$libc_cv_cc_sse4])
-
 dnl Check if -mavx works.
 AC_CACHE_CHECK(for AVX support, libc_cv_cc_avx, [dnl
 LIBC_TRY_CC_OPTION([-mavx], [libc_cv_cc_avx=yes], [libc_cv_cc_avx=no])
index d10b4d4fb3f87bf7becb03047febb8862625b5a2..396b0b31052fcc8ba9327ec123676c5de3332a6f 100644 (file)
@@ -17,15 +17,12 @@ sysdep_routines += strncat-c stpncpy-c strncpy-c strcmp-ssse3 \
                   strcpy-sse2-unaligned strncpy-sse2-unaligned \
                   stpcpy-sse2-unaligned stpncpy-sse2-unaligned \
                   strcat-sse2-unaligned strncat-sse2-unaligned \
-                  strchr-sse2-no-bsf memcmp-ssse3 strstr-sse2-unaligned
-
-ifeq (yes,$(config-cflags-sse4))
-sysdep_routines += strcspn-c strpbrk-c strspn-c varshift
+                  strchr-sse2-no-bsf memcmp-ssse3 strstr-sse2-unaligned \
+                  strcspn-c strpbrk-c strspn-c varshift
 CFLAGS-varshift.c += -msse4
 CFLAGS-strcspn-c.c += -msse4
 CFLAGS-strpbrk-c.c += -msse4
 CFLAGS-strspn-c.c += -msse4
-endif
 
 ifeq (yes,$(config-cflags-avx2))
 sysdep_routines += memset-avx2
index 45c69b302cf75877039f4092f20e4aa96f72e885..69e081d86f6f31514dfe3f2751739a9d4c090c52 100644 (file)
@@ -19,9 +19,6 @@
    <http://www.gnu.org/licenses/>.  */
 
 #include <config.h>
-
-#ifdef HAVE_SSE4_SUPPORT
-
 #include <sysdep.h>
 #include <init-arch.h>
 
@@ -64,7 +61,6 @@ END(STRCSPN)
 # define END(name) \
        cfi_endproc; .size STRCSPN_SSE2, .-STRCSPN_SSE2
 #endif
-#endif /* HAVE_SSE4_SUPPORT */
 
 #ifdef USE_AS_STRPBRK
 #include "../strpbrk.S"
index c4d3b277f082a246b47d62e01986b60fdf76e5b9..6fc5af1432bb91a9a331213d53a60c9fbce557f2 100644 (file)
@@ -19,9 +19,6 @@
    <http://www.gnu.org/licenses/>.  */
 
 #include <config.h>
-
-#ifdef HAVE_SSE4_SUPPORT
-
 #include <sysdep.h>
 #include <init-arch.h>
 
@@ -50,6 +47,4 @@ END(strspn)
        cfi_endproc; .size __strspn_sse2, .-__strspn_sse2
 #endif
 
-#endif /* HAVE_SSE4_SUPPORT */
-
 #include "../strspn.S"