]> gcc.gnu.org Git - gcc.git/commit - gcc/stmt.c
stmt.c (same_case_target_p): New function to determine whether two case labels branch...
authorRoger Sayle <roger@eyesopen.com>
Tue, 21 Jan 2003 20:52:44 +0000 (20:52 +0000)
committerRoger Sayle <sayle@gcc.gnu.org>
Tue, 21 Jan 2003 20:52:44 +0000 (20:52 +0000)
commit100e3acbe2886e01c8afc80a650045f289700776
treeb346c633f75c76e38b841d3081fc309025372972
parented695c8e6c3371ba166afb48b7b69a1083bcb1e8
stmt.c (same_case_target_p): New function to determine whether two case labels branch to the same target.

* stmt.c (same_case_target_p): New function to determine whether
two case labels branch to the same target.  Split out from...
(group_case_nodes): ... here.  Use same_case_target_p instead.
(strip_default_case_nodes): Remove explicit case nodes
that branch to the default destination.
(expand_end_case_type): Call strip_default_case_nodes after
group_case_nodes, to simplify the case-list before we count it.
Only generate table_label RTX when actually needed.  Try to share
thiscase->exit_label and thiscase->data.case_stmt.default_label
when a switch has no explicit default case.  Simplify test for
constant index.

From-SVN: r61570
gcc/ChangeLog
gcc/stmt.c
This page took 0.060096 seconds and 5 git commands to generate.