aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRalf Wildenhues <Ralf.Wildenhues@gmx.de>2008-03-09 17:43:10 +0000
committerRalf Wildenhues <rwild@gcc.gnu.org>2008-03-09 17:43:10 +0000
commit802e3f8c818a594430066173ab0beb8bde96a74a (patch)
tree7f23b331be468dba5213edf15d3bceff29b22262 /gcc
parentfa37b948cd133bef51590a9294cab8c82efa10ce (diff)
downloadgcc-802e3f8c818a594430066173ab0beb8bde96a74a.zip
gcc-802e3f8c818a594430066173ab0beb8bde96a74a.tar.gz
gcc-802e3f8c818a594430066173ab0beb8bde96a74a.tar.bz2
c.opt (Wsynth): Deprecate.
gcc/ * c.opt (Wsynth): Deprecate. * doc/invoke.texi (Option Summary, Warning Options): Document -Wno-format-contains-nul. gcc/fortran/ * invoke.texi (Error and Warning Options): Document -Wline-truncation. contrib/ * check_warning_flags.sh: Instead of invoke.texi, take the path to the doc directory as argument. Check that warnings listed in 'gcc --help' are accepted by the compiler, and listed in the manuals. From-SVN: r133059
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/c.opt2
-rw-r--r--gcc/doc/invoke.texi8
-rw-r--r--gcc/fortran/ChangeLog5
-rw-r--r--gcc/fortran/invoke.texi5
5 files changed, 24 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 8265c51..6490647 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+2008-03-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
+
+ * c.opt (Wsynth): Deprecate.
+ * doc/invoke.texi (Option Summary, Warning Options): Document
+ -Wno-format-contains-nul.
+
2008-03-09 Uros Bizjak <ubizjak@gmail.com>
PR target/35496
diff --git a/gcc/c.opt b/gcc/c.opt
index d3f81b0..dd9013e 100644
--- a/gcc/c.opt
+++ b/gcc/c.opt
@@ -423,7 +423,7 @@ Warn if type signatures of candidate methods do not match exactly
Wsynth
C++ ObjC++ Var(warn_synth) Warning
-Warn when synthesis behavior differs from Cfront
+Deprecated. This switch has no effect
Wsystem-headers
C ObjC C++ ObjC++ Warning
diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi
index 411678c..304525d 100644
--- a/gcc/doc/invoke.texi
+++ b/gcc/doc/invoke.texi
@@ -235,7 +235,7 @@ Objective-C and Objective-C++ Dialects}.
-Wempty-body -Wno-endif-labels @gol
-Werror -Werror=* @gol
-Wfatal-errors -Wfloat-equal -Wformat -Wformat=2 @gol
--Wno-format-extra-args -Wformat-nonliteral @gol
+-Wno-format-contains-nul -Wno-format-extra-args -Wformat-nonliteral @gol
-Wformat-security -Wformat-y2k @gol
-Wframe-larger-than=@var{len} -Wignored-qualifiers @gol
-Wimplicit -Wimplicit-function-declaration -Wimplicit-int @gol
@@ -2811,6 +2811,12 @@ aspects of format checking, the options @option{-Wformat-y2k},
If @option{-Wformat} is specified, also warn about @code{strftime}
formats which may yield only a two-digit year.
+@item -Wno-format-contains-nul
+@opindex Wno-format-contains-nul
+@opindex Wformat-contains-nul
+If @option{-Wformat} is specified, do not warn about format strings that
+contain NUL bytes.
+
@item -Wno-format-extra-args
@opindex Wno-format-extra-args
@opindex Wformat-extra-args
diff --git a/gcc/fortran/ChangeLog b/gcc/fortran/ChangeLog
index 8356108..72bf512 100644
--- a/gcc/fortran/ChangeLog
+++ b/gcc/fortran/ChangeLog
@@ -1,3 +1,8 @@
+2008-03-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
+
+ * invoke.texi (Error and Warning Options): Document
+ -Wline-truncation.
+
2008-03-08 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
PR fortran/34956
diff --git a/gcc/fortran/invoke.texi b/gcc/fortran/invoke.texi
index 64e5070..2bac12c 100644
--- a/gcc/fortran/invoke.texi
+++ b/gcc/fortran/invoke.texi
@@ -456,6 +456,11 @@ that initiated the continuation.
@cindex warnings, character truncation
Warn when a character assignment will truncate the assigned string.
+@item -Wline-truncation
+@opindex @code{Wline-truncation}
+@cindex warnings, line truncation
+Warn when a source code line will be truncated.
+
@item -Wconversion
@opindex @code{Wconversion}
@cindex warnings, conversion