This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH, doc] Improve state of check_warning_flags.sh warnings.
- From: Ralf Wildenhues <Ralf dot Wildenhues at gmx dot de>
- To: gcc-patches at gcc dot gnu dot org
- Date: Sun, 1 Mar 2009 08:11:51 +0100
- Subject: [PATCH, doc] Improve state of check_warning_flags.sh warnings.
- References: <20090301071014.GA6143@ins.uni-bonn.de>
This fixes most warnings output from the check_warning_flags.sh script
for current trunk.
OK for 4.4? This is a doc+contrib only patch.
Tested 'make info html pdf' of course.
Thanks,
Ralf
contrib/ChangeLog:
2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
* check_warning_flags.sh: Update flag exceptions.
gcc/ChangeLog:
2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
* doc/invoke.texi (Warning Options): -Wsync-nand is C/C++ only.
-Wno-pedantic-ms-format is for MinGW targets only.
diff --git a/contrib/check_warning_flags.sh b/contrib/check_warning_flags.sh
index fcd0f37..adbc0d6 100755
--- a/contrib/check_warning_flags.sh
+++ b/contrib/check_warning_flags.sh
@@ -39,9 +39,12 @@ stderr=check_warning_flags_stderr$$
remove_problematic_flags='
/-Wlarger-than-/d
+ /-Wframe-larger-than/d
+ /-Wdisallowed-function-list/d
/-W[alp],/d
/-Werror/d
/-Wpadded/d
+ /pedantic-ms-format/d
/=/d'
# Ensure that indexed warnings are accepted.
diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi
index 6d36794..99790b2 100644
--- a/gcc/doc/invoke.texi
+++ b/gcc/doc/invoke.texi
@@ -3129,7 +3129,7 @@ and lacks a @code{case} for one or more of the named codes of that
enumeration. @code{case} labels outside the enumeration range also
provoke warnings when this option is used.
-@item -Wsync-nand
+@item -Wsync-nand @r{(C and C++ only)}
@opindex Wsync-nand
@opindex Wno-sync-nand
Warn when @code{__sync_fetch_and_nand} and @code{__sync_nand_and_fetch}
@@ -3583,7 +3583,7 @@ assume anything on the bounds of the loop indices. With
@option{-funsafe-loop-optimizations} warn if the compiler made
such assumptions.
-@item -Wno-pedantic-ms-format
+@item -Wno-pedantic-ms-format @r{(MinGW targets only)}
@opindex Wno-pedantic-ms-format
@opindex Wpedantic-ms-format
Disables the warnings about non-ISO @code{printf} / @code{scanf} format