Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
421639ec
Commit
421639ec
authored
Dec 06, 2019
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
configure: Get rid of the gcc strength-reduce bug check.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
684c272a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
58 deletions
+0
-58
configure
configure
+0
-42
configure.ac
configure.ac
+0
-16
No files found.
configure
View file @
421639ec
...
...
@@ -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
:
...
...
configure.ac
View file @
421639ec
...
...
@@ -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])
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment