aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-cfg.c
diff options
context:
space:
mode:
authorSteven Bosscher <steven@gcc.gnu.org>2005-03-12 20:53:19 +0000
committerSteven Bosscher <steven@gcc.gnu.org>2005-03-12 20:53:19 +0000
commit7d3bf067e90674708a69c8b838b4ad7c2caf98c7 (patch)
treee415a5bfe6d95178765f883b85a58a47d393ec72 /gcc/tree-cfg.c
parentf39b4c073a4d6e7eef4e60c06b9e600977be4f04 (diff)
downloadgcc-7d3bf067e90674708a69c8b838b4ad7c2caf98c7.zip
gcc-7d3bf067e90674708a69c8b838b4ad7c2caf98c7.tar.gz
gcc-7d3bf067e90674708a69c8b838b4ad7c2caf98c7.tar.bz2
tree-cfg.c (make_goto_expr_edges): Don't use error_mark_node.
* tree-cfg.c (make_goto_expr_edges): Don't use error_mark_node. * tree-ssa-dce.c (mark_stmt_necessary): Don't check for it. * tree-ssa-operands.c (get_expr_operands): Likewise. (get_expr_operands): Likewise for ERROR_MARK. From-SVN: r96351
Diffstat (limited to 'gcc/tree-cfg.c')
-rw-r--r--gcc/tree-cfg.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/gcc/tree-cfg.c b/gcc/tree-cfg.c
index 0adfb3b..56b7bc2 100644
--- a/gcc/tree-cfg.c
+++ b/gcc/tree-cfg.c
@@ -837,7 +837,7 @@ label_to_block (tree dest)
static void
make_goto_expr_edges (basic_block bb)
{
- tree goto_t, dest;
+ tree goto_t;
basic_block target_bb;
int for_call;
block_stmt_iterator last = bsi_last (bb);
@@ -848,13 +848,10 @@ make_goto_expr_edges (basic_block bb)
CALL_EXPR or MODIFY_EXPR), then the edge is an abnormal edge resulting
from a nonlocal goto. */
if (TREE_CODE (goto_t) != GOTO_EXPR)
- {
- dest = error_mark_node;
- for_call = 1;
- }
+ for_call = 1;
else
{
- dest = GOTO_DESTINATION (goto_t);
+ tree dest = GOTO_DESTINATION (goto_t);
for_call = 0;
/* A GOTO to a local label creates normal edges. */