diff options
author | Joern Rennecke <amylaar@gcc.gnu.org> | 1998-02-17 10:26:44 +0000 |
---|---|---|
committer | Joern Rennecke <amylaar@gcc.gnu.org> | 1998-02-17 10:26:44 +0000 |
commit | a11759a38c42fd52cc46ebfeeec8f5bc98e9f1ed (patch) | |
tree | 7d919ed17c492831b64a4b11a496099612b303e7 /gcc/rtl.h | |
parent | 93f83bd58d196e279df4669628b54dd46b89f036 (diff) | |
download | gcc-a11759a38c42fd52cc46ebfeeec8f5bc98e9f1ed.zip gcc-a11759a38c42fd52cc46ebfeeec8f5bc98e9f1ed.tar.gz gcc-a11759a38c42fd52cc46ebfeeec8f5bc98e9f1ed.tar.bz2 |
rtl.h (force_line_numbers, [...]): Declare.
* rtl.h (force_line_numbers, restore_line_number_status): Declare.
* emit-rtl.c (force_line_numbers, restore_line_number_status):
New functions.
* stmt.c (struct nesting): Replace seenlabel with line_number_status.
(expand_start_case): Adjust to this change.
(check_seenlabel): New function.
(pushcase, pushcase_range, expand_endcase): Use it.
From-SVN: r18031
Diffstat (limited to 'gcc/rtl.h')
-rw-r--r-- | gcc/rtl.h | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -1147,6 +1147,11 @@ extern void reorder_insns_with_line_notes PROTO ((rtx, rtx, rtx)); extern void emit_insn_after_with_line_notes PROTO ((rtx, rtx, rtx)); extern enum rtx_code classify_insn PROTO ((rtx)); extern rtx emit PROTO ((rtx)); +/* Query and clear/ restore no_line_numbers. This is used by the + switch / case handling in stmt.c to give proper line numbers in + warnings about unreachable code. */ +int force_line_numbers PROTO((void)); +void restore_line_number_status PROTO((int old_value)); /* In insn-emit.c */ extern void add_clobbers PROTO ((rtx, int)); |