Alexandre Julliard : configure: Get rid of the gcc strength-reduce bug check.
Alexandre Julliard
julliard at winehq.org
Mon Dec 9 16:57:37 CST 2019
Module: wine
Branch: master
Commit: 421639ec63c06e67dd07af67cfd3d4103577b53e
URL: https://source.winehq.org/git/wine.git/?a=commit;h=421639ec63c06e67dd07af67cfd3d4103577b53e
Author: Alexandre Julliard <julliard at winehq.org>
Date: Fri Dec 6 11:10:18 2019 +0100
configure: Get rid of the gcc strength-reduce bug check.
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
configure | 42 ------------------------------------------
configure.ac | 16 ----------------
2 files changed, 58 deletions(-)
diff --git a/configure b/configure
index 1b463aebc0..6310283580 100755
--- a/configure
+++ b/configure
@@ -16833,48 +16833,6 @@ if test "x${GCC}" = "xyes"
then
EXTRACFLAGS="-Wall -pipe"
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc strength-reduce bug" >&5
-$as_echo_n "checking for gcc strength-reduce bug... " >&6; }
-if ${ac_cv_c_gcc_strength_bug+:} false; then :
- $as_echo_n "(cached) " >&6
-else
- if test "$cross_compiling" = yes; then :
- ac_cv_c_gcc_strength_bug="no"
-else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h. */
-int L[4] = {0,1,2,3};
-int
-main ()
-{
-static int Array[3];
- unsigned int B = 3;
- int i;
- for(i=0; i<B; i++) Array[i] = i - 3;
- for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
- L[i] = 4;
- return (Array[1] != -2 || L[2] != 3)
- ;
- return 0;
-}
-_ACEOF
-if ac_fn_c_try_run "$LINENO"; then :
- ac_cv_c_gcc_strength_bug="no"
-else
- ac_cv_c_gcc_strength_bug="yes"
-fi
-rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
- conftest.$ac_objext conftest.beam conftest.$ac_ext
-fi
-
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_gcc_strength_bug" >&5
-$as_echo "$ac_cv_c_gcc_strength_bug" >&6; }
- if test "$ac_cv_c_gcc_strength_bug" = "yes"
- then
- EXTRACFLAGS="$EXTRACFLAGS -fno-strength-reduce"
- fi
-
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fcf-protection=none" >&5
$as_echo_n "checking whether the compiler supports -fcf-protection=none... " >&6; }
if ${ac_cv_cflags__fcf_protection_none+:} false; then :
diff --git a/configure.ac b/configure.ac
index ed0c1de9db..97d2dbf3e5 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2009,22 +2009,6 @@ if test "x${GCC}" = "xyes"
then
EXTRACFLAGS="-Wall -pipe"
- dnl Check for strength-reduce bug
- AC_CACHE_CHECK( [for gcc strength-reduce bug], ac_cv_c_gcc_strength_bug,
- AC_RUN_IFELSE([AC_LANG_PROGRAM([[int L[[4]] = {0,1,2,3};]],
-[[static int Array[[3]];
- unsigned int B = 3;
- int i;
- for(i=0; i<B; i++) Array[[i]] = i - 3;
- for(i=0; i<4 - 1; i++) L[[i]] = L[[i + 1]];
- L[[i]] = 4;
- return (Array[[1]] != -2 || L[[2]] != 3)]])],
- [ac_cv_c_gcc_strength_bug="no"],[ac_cv_c_gcc_strength_bug="yes"],[ac_cv_c_gcc_strength_bug="no"]) )
- if test "$ac_cv_c_gcc_strength_bug" = "yes"
- then
- EXTRACFLAGS="$EXTRACFLAGS -fno-strength-reduce"
- fi
-
dnl Check for some compiler flags
WINE_TRY_CFLAGS([-fcf-protection=none])
WINE_TRY_CFLAGS([-fno-stack-protector])
More information about the wine-cvs
mailing list