aboutsummaryrefslogtreecommitdiff
path: root/gcc/configure.ac
diff options
context:
space:
mode:
authorAndreas Tobler <a.tobler@schweiz.org>2008-07-28 20:30:00 +0000
committerAndreas Tobler <andreast@gcc.gnu.org>2008-07-28 22:30:00 +0200
commitf6e377f82ecead63e8691b1d8349aa2c7811e02f (patch)
tree5e06367f0cb58df018bebe79dd9f27dcd2c3bebb /gcc/configure.ac
parente3d686b39e82e2e5ab23277c12377a113c982d0a (diff)
downloadgcc-f6e377f82ecead63e8691b1d8349aa2c7811e02f.zip
gcc-f6e377f82ecead63e8691b1d8349aa2c7811e02f.tar.gz
gcc-f6e377f82ecead63e8691b1d8349aa2c7811e02f.tar.bz2
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
Diffstat (limited to 'gcc/configure.ac')
-rw-r--r--gcc/configure.ac15
1 files changed, 9 insertions, 6 deletions
diff --git a/gcc/configure.ac b/gcc/configure.ac
index 6d266f2..aee90f3 100644
--- a/gcc/configure.ac
+++ b/gcc/configure.ac
@@ -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