diff options
author | geoffk <geoffk@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-08-18 10:43:26 +0000 |
---|---|---|
committer | geoffk <geoffk@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-08-18 10:43:26 +0000 |
commit | 71a3455af48e575974a233c4174aeb50c835a469 (patch) | |
tree | 4fb0b080db23c76c2853dadb847aff9aa64d9dc6 /gcc/flags.h | |
parent | 8f3870b8cc97bc38ffb07ccf3799993b481f00fc (diff) | |
download | gcc-71a3455af48e575974a233c4174aeb50c835a469.tar.gz |
* cse.c (cse_insn): Call never_reached_warning when a jump is
changed to be unconditional.
* flags.h: Declare warn_notreached.
* flow.c (delete_block): Call never_reached_warning when
a block is deleted.
* jump.c (delete_barrier_successors): Call never_reached_warning
when we delete everything after a BARRIER.
(never_reached_warning): New function.
* rtl.h: Declare never_reached_warning.
* toplev.c (warn_notreached): New variable.
(lang_independent_options): Set warn_notreached
when -Wunreachable-code.
(compile_file): We need line numbers for -Wunreachable-code.
Also modify documentation to suit.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@28747 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 6f2f93fda75..9871fb88b78 100644 --- a/gcc/flags.h +++ b/gcc/flags.h @@ -79,6 +79,10 @@ extern int extra_warnings; extern int warn_unused; +/* Nonzero to warn about code which is never reached. */ + +extern int warn_notreached; + /* Nonzero means warn if inline function is too large. */ extern int warn_inline; |