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
f8cb48b5
Commit
f8cb48b5
authored
Sep 12, 2005
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Only try to set -mpreferred-stack-boundary on i386.
Add -Wdeclaration-after-statement warning if supported.
parent
a9a3bc7b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
89 additions
and
12 deletions
+89
-12
configure
configure
+70
-5
configure.ac
configure.ac
+19
-7
No files found.
configure
View file @
f8cb48b5
...
...
@@ -11359,7 +11359,9 @@ _ACEOF
fi
echo
"
$as_me
:
$LINENO
: checking for gcc -mpreferred-stack-boundary=2 support"
>
&5
case
$host_cpu
in
*
i[3456789]86
*
)
echo
"
$as_me
:
$LINENO
: checking for gcc -mpreferred-stack-boundary=2 support"
>
&5
echo
$ECHO_N
"checking for gcc -mpreferred-stack-boundary=2 support...
$ECHO_C
"
>
&6
if
test
"
${
ac_cv_c_gcc_stack_boundary
+set
}
"
=
set
;
then
echo
$ECHO_N
"(cached)
$ECHO_C
"
>
&6
...
...
@@ -11415,10 +11417,12 @@ CFLAGS=$ac_wine_try_cflags_saved
fi
echo
"
$as_me
:
$LINENO
: result:
$ac_cv_c_gcc_stack_boundary
"
>
&5
echo
"
${
ECHO_T
}
$ac_cv_c_gcc_stack_boundary
"
>
&6
if
test
"
$ac_cv_c_gcc_stack_boundary
"
=
"yes"
then
EXTRACFLAGS
=
"
$EXTRACFLAGS
-mpreferred-stack-boundary=2"
fi
if
test
"
$ac_cv_c_gcc_stack_boundary
"
=
"yes"
then
EXTRACFLAGS
=
"
$EXTRACFLAGS
-mpreferred-stack-boundary=2"
fi
;;
esac
echo
"
$as_me
:
$LINENO
: checking for gcc -fno-strict-aliasing support"
>
&5
echo
$ECHO_N
"checking for gcc -fno-strict-aliasing support...
$ECHO_C
"
>
&6
...
...
@@ -11542,6 +11546,67 @@ echo "${ECHO_T}$ac_cv_c_gcc_gstabs" >&6
EXTRACFLAGS
=
"
$EXTRACFLAGS
-gstabs+"
fi
echo
"
$as_me
:
$LINENO
: checking for gcc -Wdeclaration-after-statement support"
>
&5
echo
$ECHO_N
"checking for gcc -Wdeclaration-after-statement support...
$ECHO_C
"
>
&6
if
test
"
${
ac_cv_c_gcc_decl_after_statement
+set
}
"
=
set
;
then
echo
$ECHO_N
"(cached)
$ECHO_C
"
>
&6
else
ac_wine_try_cflags_saved
=
$CFLAGS
CFLAGS
=
"
$CFLAGS
-Wdeclaration-after-statement"
cat
>
conftest.
$ac_ext
<<
_ACEOF
/* confdefs.h. */
_ACEOF
cat
confdefs.h
>>
conftest.
$ac_ext
cat
>>
conftest.
$ac_ext
<<
_ACEOF
/* end confdefs.h. */
int
main ()
{
;
return 0;
}
_ACEOF
rm
-f
conftest.
$ac_objext
conftest
$ac_exeext
if
{
(
eval echo
"
$as_me
:
$LINENO
:
\"
$ac_link
\"
"
)
>
&5
(
eval
$ac_link
)
2>conftest.er1
ac_status
=
$?
grep
-v
'^ *+'
conftest.er1
>
conftest.err
rm
-f
conftest.er1
cat
conftest.err
>
&5
echo
"
$as_me
:
$LINENO
:
\$
? =
$ac_status
"
>
&5
(
exit
$ac_status
)
;
}
&&
{
ac_try
=
'test -z "$ac_c_werror_flag" || test ! -s conftest.err'
{
(
eval echo
"
$as_me
:
$LINENO
:
\"
$ac_try
\"
"
)
>
&5
(
eval
$ac_try
)
2>&5
ac_status
=
$?
echo
"
$as_me
:
$LINENO
:
\$
? =
$ac_status
"
>
&5
(
exit
$ac_status
)
;
}
;
}
&&
{
ac_try
=
'test -s conftest$ac_exeext'
{
(
eval echo
"
$as_me
:
$LINENO
:
\"
$ac_try
\"
"
)
>
&5
(
eval
$ac_try
)
2>&5
ac_status
=
$?
echo
"
$as_me
:
$LINENO
:
\$
? =
$ac_status
"
>
&5
(
exit
$ac_status
)
;
}
;
}
;
then
ac_cv_c_gcc_decl_after_statement
=
"yes"
else
echo
"
$as_me
: failed program was:"
>
&5
sed
's/^/| /'
conftest.
$ac_ext
>
&5
ac_cv_c_gcc_decl_after_statement
=
"no"
fi
rm
-f
conftest.err conftest.
$ac_objext
\
conftest
$ac_exeext
conftest.
$ac_ext
CFLAGS
=
$ac_wine_try_cflags_saved
fi
echo
"
$as_me
:
$LINENO
: result:
$ac_cv_c_gcc_decl_after_statement
"
>
&5
echo
"
${
ECHO_T
}
$ac_cv_c_gcc_decl_after_statement
"
>
&6
if
test
"
$ac_cv_c_gcc_decl_after_statement
"
=
"yes"
then
EXTRACFLAGS
=
"
$EXTRACFLAGS
-Wdeclaration-after-statement"
fi
saved_CFLAGS
=
"
$CFLAGS
"
CFLAGS
=
"
$CFLAGS
-Wpointer-arith -Werror"
echo
"
$as_me
:
$LINENO
: checking for broken string.h that generates warnings"
>
&5
...
...
configure.ac
View file @
f8cb48b5
...
...
@@ -799,13 +799,17 @@ int main(void) {
fi
dnl Check for -mpreferred-stack-boundary
AC_CACHE_CHECK([for gcc -mpreferred-stack-boundary=2 support], ac_cv_c_gcc_stack_boundary,
[WINE_TRY_CFLAGS([-mpreferred-stack-boundary=2],
ac_cv_c_gcc_stack_boundary="yes",ac_cv_c_gcc_stack_boundary="no")])
if test "$ac_cv_c_gcc_stack_boundary" = "yes"
then
EXTRACFLAGS="$EXTRACFLAGS -mpreferred-stack-boundary=2"
fi
case $host_cpu in
*i[[3456789]]86*)
AC_CACHE_CHECK([for gcc -mpreferred-stack-boundary=2 support], ac_cv_c_gcc_stack_boundary,
[WINE_TRY_CFLAGS([-mpreferred-stack-boundary=2],
ac_cv_c_gcc_stack_boundary="yes",ac_cv_c_gcc_stack_boundary="no")])
if test "$ac_cv_c_gcc_stack_boundary" = "yes"
then
EXTRACFLAGS="$EXTRACFLAGS -mpreferred-stack-boundary=2"
fi
;;
esac
dnl Check for -fno-strict-aliasing
AC_CACHE_CHECK([for gcc -fno-strict-aliasing support], ac_cv_c_gcc_no_strict_aliasing,
...
...
@@ -824,6 +828,14 @@ int main(void) {
EXTRACFLAGS="$EXTRACFLAGS -gstabs+"
fi
dnl Check for -Wdeclaration-after-statement option
AC_CACHE_CHECK([for gcc -Wdeclaration-after-statement support], ac_cv_c_gcc_decl_after_statement,
[WINE_TRY_CFLAGS([-Wdeclaration-after-statement],ac_cv_c_gcc_decl_after_statement="yes", ac_cv_c_gcc_decl_after_statement="no")])
if test "$ac_cv_c_gcc_decl_after_statement" = "yes"
then
EXTRACFLAGS="$EXTRACFLAGS -Wdeclaration-after-statement"
fi
dnl Check for noisy string.h
saved_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS -Wpointer-arith -Werror"
...
...
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