configure.ac: Use the m4_do macro to concatenate the warnings into one string in...
2008-07-28 Andreas Tobler <a.tobler@schweiz.org> * configure.ac: Use the m4_do macro to concatenate the warnings into one string in ACX_PROG_CC_WARNING_OPTS, ACX_PROG_CC_WARNING_ALMOST_PEDANTIC and ACX_PROG_CC_WARNINGS_ARE_ERRORS. * configure: Regenerate. From-SVN: r138216
This commit is contained in:
parent
e3d686b39e
commit
f6e377f82e
@ -1,3 +1,10 @@
|
||||
2008-07-28 Andreas Tobler <a.tobler@schweiz.org>
|
||||
|
||||
* configure.ac: Use the m4_do macro to concatenate the warnings into
|
||||
one string in ACX_PROG_CC_WARNING_OPTS,
|
||||
ACX_PROG_CC_WARNING_ALMOST_PEDANTIC and ACX_PROG_CC_WARNINGS_ARE_ERRORS.
|
||||
* configure: Regenerate.
|
||||
|
||||
2008-07-28 Richard Guenther <rguenther@suse.de>
|
||||
|
||||
* tree-ssa-pre.c (insert_into_preds_of_block): Remove dead code.
|
||||
|
58
gcc/configure
vendored
58
gcc/configure
vendored
@ -7014,8 +7014,7 @@ fi
|
||||
|
||||
loose_warn=
|
||||
save_CFLAGS="$CFLAGS"
|
||||
for option in -W -Wall -Wwrite-strings -Wstrict-prototypes \
|
||||
-Wmissing-prototypes -Wcast-qual; do
|
||||
for option in -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wcast-qual; do
|
||||
as_acx_Woption=`echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
|
||||
|
||||
echo "$as_me:$LINENO: checking whether $CC supports $option" >&5
|
||||
@ -7082,8 +7081,7 @@ CFLAGS="$save_CFLAGS"
|
||||
|
||||
strict_warn=
|
||||
save_CFLAGS="$CFLAGS"
|
||||
for option in -Wold-style-definition -Wc++-compat \
|
||||
-Wmissing-format-attribute; do
|
||||
for option in -Wold-style-definition -Wc++-compat -Wmissing-format-attribute; do
|
||||
as_acx_Woption=`echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
|
||||
|
||||
echo "$as_me:$LINENO: checking whether $CC supports $option" >&5
|
||||
@ -7149,16 +7147,13 @@ fi
|
||||
CFLAGS="$save_CFLAGS"
|
||||
|
||||
if test "$GCC" = yes; then
|
||||
echo "$as_me:$LINENO: checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros \
|
||||
-Wno-overlength-strings" >&5
|
||||
echo $ECHO_N "checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros \
|
||||
-Wno-overlength-strings... $ECHO_C" >&6
|
||||
if test "${acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings+set}" = set; then
|
||||
echo "$as_me:$LINENO: checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings" >&5
|
||||
echo $ECHO_N "checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings... $ECHO_C" >&6
|
||||
if test "${acx_cv_prog_cc_pedantic_m4_do__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings_+set}" = set; then
|
||||
echo $ECHO_N "(cached) $ECHO_C" >&6
|
||||
else
|
||||
save_CFLAGS="$CFLAGS"
|
||||
CFLAGS="-pedantic -Wno-long-long -Wno-variadic-macros \
|
||||
-Wno-overlength-strings"
|
||||
CFLAGS="-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
|
||||
cat >conftest.$ac_ext <<_ACEOF
|
||||
/* confdefs.h. */
|
||||
_ACEOF
|
||||
@ -7196,21 +7191,20 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
||||
ac_status=$?
|
||||
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
||||
(exit $ac_status); }; }; then
|
||||
acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings=yes
|
||||
acx_cv_prog_cc_pedantic_m4_do__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings_=yes
|
||||
else
|
||||
echo "$as_me: failed program was:" >&5
|
||||
sed 's/^/| /' conftest.$ac_ext >&5
|
||||
|
||||
acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings=no
|
||||
acx_cv_prog_cc_pedantic_m4_do__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings_=no
|
||||
fi
|
||||
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
||||
CFLAGS="$save_CFLAGS"
|
||||
fi
|
||||
echo "$as_me:$LINENO: result: $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings" >&5
|
||||
echo "${ECHO_T}$acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings" >&6
|
||||
if test $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings = yes; then
|
||||
strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros \
|
||||
-Wno-overlength-strings"
|
||||
echo "$as_me:$LINENO: result: $acx_cv_prog_cc_pedantic_m4_do__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings_" >&5
|
||||
echo "${ECHO_T}$acx_cv_prog_cc_pedantic_m4_do__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings_" >&6
|
||||
if test $acx_cv_prog_cc_pedantic_m4_do__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings_ = yes; then
|
||||
strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
|
||||
fi
|
||||
|
||||
|
||||
@ -14731,13 +14725,13 @@ if test "${lt_cv_nm_interface+set}" = set; then
|
||||
else
|
||||
lt_cv_nm_interface="BSD nm"
|
||||
echo "int some_variable = 0;" > conftest.$ac_ext
|
||||
(eval echo "\"\$as_me:14734: $ac_compile\"" >&5)
|
||||
(eval echo "\"\$as_me:14728: $ac_compile\"" >&5)
|
||||
(eval "$ac_compile" 2>conftest.err)
|
||||
cat conftest.err >&5
|
||||
(eval echo "\"\$as_me:14737: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
|
||||
(eval echo "\"\$as_me:14731: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
|
||||
(eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
|
||||
cat conftest.err >&5
|
||||
(eval echo "\"\$as_me:14740: output\"" >&5)
|
||||
(eval echo "\"\$as_me:14734: output\"" >&5)
|
||||
cat conftest.out >&5
|
||||
if $GREP 'External.*some_variable' conftest.out > /dev/null; then
|
||||
lt_cv_nm_interface="MS dumpbin"
|
||||
@ -15792,7 +15786,7 @@ ia64-*-hpux*)
|
||||
;;
|
||||
*-*-irix6*)
|
||||
# Find out which ABI we are using.
|
||||
echo '#line 15795 "configure"' > conftest.$ac_ext
|
||||
echo '#line 15789 "configure"' > conftest.$ac_ext
|
||||
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
||||
(eval $ac_compile) 2>&5
|
||||
ac_status=$?
|
||||
@ -16412,11 +16406,11 @@ else
|
||||
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
||||
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
||||
-e 's:$: $lt_compiler_flag:'`
|
||||
(eval echo "\"\$as_me:16415: $lt_compile\"" >&5)
|
||||
(eval echo "\"\$as_me:16409: $lt_compile\"" >&5)
|
||||
(eval "$lt_compile" 2>conftest.err)
|
||||
ac_status=$?
|
||||
cat conftest.err >&5
|
||||
echo "$as_me:16419: \$? = $ac_status" >&5
|
||||
echo "$as_me:16413: \$? = $ac_status" >&5
|
||||
if (exit $ac_status) && test -s "$ac_outfile"; then
|
||||
# The compiler can only warn and ignore the option if not recognized
|
||||
# So say no if there are warnings other than the usual output.
|
||||
@ -16734,11 +16728,11 @@ else
|
||||
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
||||
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
||||
-e 's:$: $lt_compiler_flag:'`
|
||||
(eval echo "\"\$as_me:16737: $lt_compile\"" >&5)
|
||||
(eval echo "\"\$as_me:16731: $lt_compile\"" >&5)
|
||||
(eval "$lt_compile" 2>conftest.err)
|
||||
ac_status=$?
|
||||
cat conftest.err >&5
|
||||
echo "$as_me:16741: \$? = $ac_status" >&5
|
||||
echo "$as_me:16735: \$? = $ac_status" >&5
|
||||
if (exit $ac_status) && test -s "$ac_outfile"; then
|
||||
# The compiler can only warn and ignore the option if not recognized
|
||||
# So say no if there are warnings other than the usual output.
|
||||
@ -16839,11 +16833,11 @@ else
|
||||
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
||||
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
||||
-e 's:$: $lt_compiler_flag:'`
|
||||
(eval echo "\"\$as_me:16842: $lt_compile\"" >&5)
|
||||
(eval echo "\"\$as_me:16836: $lt_compile\"" >&5)
|
||||
(eval "$lt_compile" 2>out/conftest.err)
|
||||
ac_status=$?
|
||||
cat out/conftest.err >&5
|
||||
echo "$as_me:16846: \$? = $ac_status" >&5
|
||||
echo "$as_me:16840: \$? = $ac_status" >&5
|
||||
if (exit $ac_status) && test -s out/conftest2.$ac_objext
|
||||
then
|
||||
# The compiler can only warn and ignore the option if not recognized
|
||||
@ -16894,11 +16888,11 @@ else
|
||||
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
||||
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
||||
-e 's:$: $lt_compiler_flag:'`
|
||||
(eval echo "\"\$as_me:16897: $lt_compile\"" >&5)
|
||||
(eval echo "\"\$as_me:16891: $lt_compile\"" >&5)
|
||||
(eval "$lt_compile" 2>out/conftest.err)
|
||||
ac_status=$?
|
||||
cat out/conftest.err >&5
|
||||
echo "$as_me:16901: \$? = $ac_status" >&5
|
||||
echo "$as_me:16895: \$? = $ac_status" >&5
|
||||
if (exit $ac_status) && test -s out/conftest2.$ac_objext
|
||||
then
|
||||
# The compiler can only warn and ignore the option if not recognized
|
||||
@ -19691,7 +19685,7 @@ else
|
||||
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
||||
lt_status=$lt_dlunknown
|
||||
cat > conftest.$ac_ext <<_LT_EOF
|
||||
#line 19694 "configure"
|
||||
#line 19688 "configure"
|
||||
#include "confdefs.h"
|
||||
|
||||
#if HAVE_DLFCN_H
|
||||
@ -19791,7 +19785,7 @@ else
|
||||
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
||||
lt_status=$lt_dlunknown
|
||||
cat > conftest.$ac_ext <<_LT_EOF
|
||||
#line 19794 "configure"
|
||||
#line 19788 "configure"
|
||||
#include "confdefs.h"
|
||||
|
||||
#if HAVE_DLFCN_H
|
||||
|
@ -322,12 +322,15 @@ AC_CHECK_TYPES([__int64], [AC_CHECK_SIZEOF(__int64)])
|
||||
# * overlong strings
|
||||
# So, we only use -pedantic if we can disable those warnings.
|
||||
|
||||
ACX_PROG_CC_WARNING_OPTS([-W -Wall -Wwrite-strings -Wstrict-prototypes \
|
||||
-Wmissing-prototypes -Wcast-qual], [loose_warn])
|
||||
ACX_PROG_CC_WARNING_OPTS([-Wold-style-definition -Wc++-compat \
|
||||
-Wmissing-format-attribute], [strict_warn])
|
||||
ACX_PROG_CC_WARNING_ALMOST_PEDANTIC([-Wno-long-long -Wno-variadic-macros \
|
||||
-Wno-overlength-strings], [strict_warn])
|
||||
ACX_PROG_CC_WARNING_OPTS(
|
||||
[m4_do([-W -Wall -Wwrite-strings -Wstrict-prototypes ],
|
||||
[-Wmissing-prototypes -Wcast-qual])], [loose_warn])
|
||||
ACX_PROG_CC_WARNING_OPTS(
|
||||
[m4_do([-Wold-style-definition -Wc++-compat ],
|
||||
[-Wmissing-format-attribute])], [strict_warn])
|
||||
ACX_PROG_CC_WARNING_ALMOST_PEDANTIC(
|
||||
[m4_do([-Wno-long-long -Wno-variadic-macros ],
|
||||
[-Wno-overlength-strings])], [strict_warn])
|
||||
ACX_PROG_CC_WARNINGS_ARE_ERRORS([manual], [strict_warn])
|
||||
|
||||
# The above macros do nothing if the compiler is not GCC. However, the
|
||||
|
Loading…
Reference in New Issue
Block a user