aboutsummaryrefslogtreecommitdiff
path: root/gcc/doc/invoke.texi
diff options
context:
space:
mode:
authorRichard Guenther <richard.guenther@uni-tuebingen.de>2004-04-30 05:29:23 +0000
committerJim Wilson <wilson@gcc.gnu.org>2004-04-29 22:29:23 -0700
commitc65a01af068213286f89fea69f26f0a7593dd1b9 (patch)
tree6a6d9a948a86807f77ca3ea4ba0484743388b9e7 /gcc/doc/invoke.texi
parentd1c6a4014429a8f3e3267c3f41c0be77b198fb38 (diff)
downloadgcc-c65a01af068213286f89fea69f26f0a7593dd1b9.zip
gcc-c65a01af068213286f89fea69f26f0a7593dd1b9.tar.gz
gcc-c65a01af068213286f89fea69f26f0a7593dd1b9.tar.bz2
Patch from Richard Guenther.
* commom.opt (Wfatal-errors): Add it. * diagnostic.c (flag_fatal_errors): Define it. (diagnostic_action_after_output): Check for flag_fatal_errors. * flags.h (flag_fatal_errors): Declare it. * opts.c (common_handle_option): Add OPT_Wfatal_errors. * doc/invoke.texi (Warning Options): Document -Wfatal-errors. From-SVN: r81323
Diffstat (limited to 'gcc/doc/invoke.texi')
-rw-r--r--gcc/doc/invoke.texi8
1 files changed, 7 insertions, 1 deletions
diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi
index 7cba693..6161c18 100644
--- a/gcc/doc/invoke.texi
+++ b/gcc/doc/invoke.texi
@@ -214,7 +214,7 @@ in the following sections.
-Wconversion -Wno-deprecated-declarations @gol
-Wdisabled-optimization -Wno-div-by-zero -Wendif-labels @gol
-Werror -Werror-implicit-function-declaration @gol
--Wfloat-equal -Wformat -Wformat=2 @gol
+-Wfatal-errors -Wfloat-equal -Wformat -Wformat=2 @gol
-Wno-format-extra-args -Wformat-nonliteral @gol
-Wformat-security -Wformat-y2k @gol
-Wimplicit -Wimplicit-function-declaration -Wimplicit-int @gol
@@ -2065,6 +2065,12 @@ machines.
Warn whenever a comment-start sequence @samp{/*} appears in a @samp{/*}
comment, or whenever a Backslash-Newline appears in a @samp{//} comment.
+@item -Wfatal-errors
+@opindex Wfatal-errors
+This option causes the compiler to abort compilation on the first error
+occurred rather than trying to keep going and printing further error
+messages.
+
@item -Wformat
@opindex Wformat
Check calls to @code{printf} and @code{scanf}, etc., to make sure that