Commit bb322018 by Chris Demetriou Committed by Chris Demetriou

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
parent 12b1c80b
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> 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
PR target/48053 PR target/48053
......
...@@ -227,7 +227,7 @@ Objective-C and Objective-C++ Dialects}. ...@@ -227,7 +227,7 @@ Objective-C and Objective-C++ Dialects}.
@xref{Language Independent Options,,Options to Control Diagnostic Messages Formatting}. @xref{Language Independent Options,,Options to Control Diagnostic Messages Formatting}.
@gccoptlist{-fmessage-length=@var{n} @gol @gccoptlist{-fmessage-length=@var{n} @gol
-fdiagnostics-show-location=@r{[}once@r{|}every-line@r{]} @gol -fdiagnostics-show-location=@r{[}once@r{|}every-line@r{]} @gol
-fdiagnostics-show-option} -fno-diagnostics-show-option}
@item Warning Options @item Warning Options
@xref{Warning Options,,Options to Request or Suppress Warnings}. @xref{Warning Options,,Options to Request or Suppress Warnings}.
...@@ -2771,12 +2771,13 @@ messages reporter to emit the same source location information (as ...@@ -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 prefix) for physical lines that result from the process of breaking
a message which is too long to fit on a single line. 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 @opindex fdiagnostics-show-option
This option instructs the diagnostic machinery to add text to each By default, each diagnostic emitted includes text which indicates the
diagnostic emitted, which indicates which command line option directly command line option that directly controls the diagnostic (if such an
controls that diagnostic, when such an option is known to the option is known to the diagnostic machinery). Specifying the
diagnostic machinery. @option{-fno-diagnostics-show-option} flag suppresses that behavior.
@item -Wcoverage-mismatch @item -Wcoverage-mismatch
@opindex Wcoverage-mismatch @opindex Wcoverage-mismatch
...@@ -2842,9 +2843,13 @@ controlled by @option{-Wswitch} into errors. This switch takes a ...@@ -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 negative form, to be used to negate @option{-Werror} for specific
warnings, for example @option{-Wno-error=switch} makes warnings, for example @option{-Wno-error=switch} makes
@option{-Wswitch} warnings not be errors, even when @option{-Werror} @option{-Wswitch} warnings not be errors, even when @option{-Werror}
is in effect. You can use the @option{-fdiagnostics-show-option} is in effect.
option to have each controllable warning amended with the option which
controls it, to determine what to use with this option. 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 Note that specifying @option{-Werror=}@var{foo} automatically implies
@option{-W}@var{foo}. However, @option{-Wno-error=}@var{foo} does not @option{-W}@var{foo}. However, @option{-Wno-error=}@var{foo} does not
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment