aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorChris Demetriou <cgd@google.com>2011-03-12 23:38:22 -0800
committerChris Demetriou <cgd@gcc.gnu.org>2011-03-12 23:38:22 -0800
commitbb3220188fe22adb189ab0cf461744d444e58e28 (patch)
tree43412a7265b235dafe92e3aca797b7a2beae50f4 /gcc
parent12b1c80b30196a9c2eabcc460fd156263ac46f48 (diff)
downloadgcc-bb3220188fe22adb189ab0cf461744d444e58e28.zip
gcc-bb3220188fe22adb189ab0cf461744d444e58e28.tar.gz
gcc-bb3220188fe22adb189ab0cf461744d444e58e28.tar.bz2
invoke.texi (-fdiagnostics-show-option): Replace with...
2011-03-13 Chris Demetriou <cgd@google.com> * doc/invoke.texi (-fdiagnostics-show-option): Replace with... (-fno-diagnostics-show-option): this, to reflect current default. (-Werror=): Update text about -fno-diagnostics-show-option. From-SVN: r170921
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/doc/invoke.texi23
2 files changed, 20 insertions, 9 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 472eeab..0f3cac5 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+2011-03-13 Chris Demetriou <cgd@google.com>
+
+ * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
+ (-fno-diagnostics-show-option): this, to reflect current default.
+ (-Werror=): Update text about -fno-diagnostics-show-option.
+
2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
PR target/48053
diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi
index 6998068..aff5a05 100644
--- a/gcc/doc/invoke.texi
+++ b/gcc/doc/invoke.texi
@@ -227,7 +227,7 @@ Objective-C and Objective-C++ Dialects}.
@xref{Language Independent Options,,Options to Control Diagnostic Messages Formatting}.
@gccoptlist{-fmessage-length=@var{n} @gol
-fdiagnostics-show-location=@r{[}once@r{|}every-line@r{]} @gol
--fdiagnostics-show-option}
+-fno-diagnostics-show-option}
@item Warning Options
@xref{Warning Options,,Options to Request or Suppress Warnings}.
@@ -2771,12 +2771,13 @@ messages reporter to emit the same source location information (as
prefix) for physical lines that result from the process of breaking
a message which is too long to fit on a single line.
-@item -fdiagnostics-show-option
+@item -fno-diagnostics-show-option
+@opindex fno-diagnostics-show-option
@opindex fdiagnostics-show-option
-This option instructs the diagnostic machinery to add text to each
-diagnostic emitted, which indicates which command line option directly
-controls that diagnostic, when such an option is known to the
-diagnostic machinery.
+By default, each diagnostic emitted includes text which indicates the
+command line option that directly controls the diagnostic (if such an
+option is known to the diagnostic machinery). Specifying the
+@option{-fno-diagnostics-show-option} flag suppresses that behavior.
@item -Wcoverage-mismatch
@opindex Wcoverage-mismatch
@@ -2842,9 +2843,13 @@ controlled by @option{-Wswitch} into errors. This switch takes a
negative form, to be used to negate @option{-Werror} for specific
warnings, for example @option{-Wno-error=switch} makes
@option{-Wswitch} warnings not be errors, even when @option{-Werror}
-is in effect. You can use the @option{-fdiagnostics-show-option}
-option to have each controllable warning amended with the option which
-controls it, to determine what to use with this option.
+is in effect.
+
+The warning message for each controllable warning includes the
+option which controls the warning. That option can then be used with
+@option{-Werror=} and @option{-Wno-error=} as described above.
+(Printing of the option in the warning message can be disabled using the
+@option{-fno-diagnostics-show-option} flag.)
Note that specifying @option{-Werror=}@var{foo} automatically implies
@option{-W}@var{foo}. However, @option{-Wno-error=}@var{foo} does not