* Makefile.in (LOOSE_WARN, STRICT_WARN): Update comments.
* configure.ac (loose_warn): Move -Wc++-compat from here...
(strict_warn): ...to here.
* configure: Regenerate.
From-SVN: r137699
+2008-07-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
+
+ * Makefile.in (LOOSE_WARN, STRICT_WARN): Update comments.
+ * configure.ac (loose_warn): Move -Wc++-compat from here...
+ (strict_warn): ...to here.
+ * configure: Regenerate.
+
2008-07-10 Joseph Myers <joseph@codesourcery.com>
* config.gcc (arm-*-coff*, armel-*-coff*, h8300-*-*,
# flags from configure. The user is free to explicitly turn these flags
# off if they wish.
# LOOSE_WARN are the warning flags to use when compiling something
-# which is only compiled with gcc, such as libgcc and the frontends
-# other than C.
+# which is only compiled with gcc, such as libgcc.
# STRICT_WARN are the additional warning flags to
-# apply to the back end and the C front end, which may be compiled
+# apply to the back end and some front ends, which may be compiled
# with other compilers.
LOOSE_WARN = @loose_warn@
STRICT_WARN = @strict_warn@
loose_warn=
save_CFLAGS="$CFLAGS"
for option in -W -Wall -Wwrite-strings -Wstrict-prototypes \
- -Wmissing-prototypes -Wcast-qual -Wc++-compat; do
+ -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
strict_warn=
save_CFLAGS="$CFLAGS"
-for option in -Wold-style-definition \
+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`
# 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 -Wc++-compat], [loose_warn])
-ACX_PROG_CC_WARNING_OPTS([-Wold-style-definition \
+ -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])