diff options
author | wilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-04-30 05:29:23 +0000 |
---|---|---|
committer | wilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-04-30 05:29:23 +0000 |
commit | 295acf4f5ca177d3b8d9fb631b463e4011378197 (patch) | |
tree | 6a6d9a948a86807f77ca3ea4ba0484743388b9e7 /gcc/flags.h | |
parent | 5024a4f824b5e13f75592bf62c8456f736c34c57 (diff) | |
download | gcc-295acf4f5ca177d3b8d9fb631b463e4011378197.tar.gz |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@81323 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/flags.h')
-rw-r--r-- | gcc/flags.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/flags.h b/gcc/flags.h index 472df5426d6..b4fc10d7f90 100644 --- a/gcc/flags.h +++ b/gcc/flags.h @@ -407,6 +407,10 @@ extern int flag_really_no_inline; extern int flag_syntax_only; extern int rtl_dump_and_exit; +/* Nonzero if we are exiting on the first error occurred. */ + +extern int flag_fatal_errors; + /* Nonzero means we should save auxiliary info into a .X file. */ extern int flag_gen_aux_info; |