configure: Get rid of the gcc strength-reduce bug check.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
684c272aa7
commit
421639ec63
|
@ -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 :
|
||||
|
|
16
configure.ac
16
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])
|
||||
|
|
Loading…
Reference in New Issue