diff options
author | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-10-06 06:01:27 +0000 |
---|---|---|
committer | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-10-06 06:01:27 +0000 |
commit | fbc1c83e2cee2521d6e0122f7a3b8572fac244e1 (patch) | |
tree | 2a84a351f2dd9e081499cea34c0929d359328dd0 /gcc/flags.h | |
parent | 810ba5145dda3dbbf478746bd0167595b00ce903 (diff) | |
download | gcc-fbc1c83e2cee2521d6e0122f7a3b8572fac244e1.tar.gz |
* c-decl.c (warn_missing_noreturn): Remove.
(c_expand_body): Don't set or check can_reach_end.
* c-tree.h (warn_missing_noreturn): Move ...
* flags.h: ... here.
(can_reach_end): Remove.
* flow.c (check_function_return_warnings): New.
(make_edges): No edge to exit for noreturn sibcalls.
* function.c (expand_function_end): Save the return value
clobber instruction.
(mark_function_status): Mark it.
* function.h (struct function): Add x_clobber_return_insn.
* jump.c (can_reach_end): Remove.
(calculate_can_reach_end): Remove.
(jump_optimize_1): Don't call it.
* output.h (check_function_return_warnings): Declare.
* toplev.c (warn_missing_noreturn): Move from c-decl.c
(rest_of_compilation): Call check_function_return_warnings.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@36750 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/flags.h')
-rw-r--r-- | gcc/flags.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/gcc/flags.h b/gcc/flags.h index 0a29c4b126d..7fec383bdd7 100644 --- a/gcc/flags.h +++ b/gcc/flags.h @@ -132,6 +132,10 @@ extern int warn_switch; extern int warn_return_type; +/* Warn about functions which might be candidates for attribute noreturn. */ + +extern int warn_missing_noreturn; + /* Nonzero means warn about pointer casts that increase the required alignment of the target type (and might therefore lead to a crash due to a misaligned access). */ @@ -547,11 +551,6 @@ extern int flag_renumber_insns; extern int frame_pointer_needed; -/* Set nonzero if jump_optimize finds that control falls through - at the end of the function. */ - -extern int can_reach_end; - /* Nonzero if GCC must add code to check memory access (used by Checker). */ extern int flag_check_memory_usage; |