diff options
author | Kazu Hirata <kazu@cs.umass.edu> | 2005-03-03 14:29:00 +0000 |
---|---|---|
committer | Kazu Hirata <kazu@gcc.gnu.org> | 2005-03-03 14:29:00 +0000 |
commit | 229cc11f741fdcebeafd22617c707602c43de8e6 (patch) | |
tree | e474ed72dd03fd1e6c585dfe77da2b3afc603293 /gcc/tree-cfg.c | |
parent | 9550206bcb7d4cced1ddc0db154fffbfdad4ed40 (diff) | |
download | gcc-229cc11f741fdcebeafd22617c707602c43de8e6.zip gcc-229cc11f741fdcebeafd22617c707602c43de8e6.tar.gz gcc-229cc11f741fdcebeafd22617c707602c43de8e6.tar.bz2 |
tree-cfg.c (stmt_starts_bb_p): Clean up by replacing code with LABEL_EXPR.
* tree-cfg.c (stmt_starts_bb_p): Clean up by replacing code
with LABEL_EXPR.
From-SVN: r95831
Diffstat (limited to 'gcc/tree-cfg.c')
-rw-r--r-- | gcc/tree-cfg.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/gcc/tree-cfg.c b/gcc/tree-cfg.c index 2ebc595..6ba0a02 100644 --- a/gcc/tree-cfg.c +++ b/gcc/tree-cfg.c @@ -2650,8 +2650,6 @@ simple_goto_p (tree expr) static inline bool stmt_starts_bb_p (tree t, tree prev_t) { - enum tree_code code; - if (t == NULL_TREE) return false; @@ -2659,16 +2657,14 @@ stmt_starts_bb_p (tree t, tree prev_t) statement wasn't a label of the same type. This prevents the creation of consecutive blocks that have nothing but a single label. */ - code = TREE_CODE (t); - if (code == LABEL_EXPR) + if (TREE_CODE (t) == LABEL_EXPR) { /* Nonlocal and computed GOTO targets always start a new block. */ - if (code == LABEL_EXPR - && (DECL_NONLOCAL (LABEL_EXPR_LABEL (t)) - || FORCED_LABEL (LABEL_EXPR_LABEL (t)))) + if (DECL_NONLOCAL (LABEL_EXPR_LABEL (t)) + || FORCED_LABEL (LABEL_EXPR_LABEL (t))) return true; - if (prev_t && TREE_CODE (prev_t) == code) + if (prev_t && TREE_CODE (prev_t) == LABEL_EXPR) { if (DECL_NONLOCAL (LABEL_EXPR_LABEL (prev_t))) return true; |