summaryrefslogtreecommitdiff
path: root/gcc/tree-cfg.c
diff options
context:
space:
mode:
authorsteven <steven@138bc75d-0d04-0410-961f-82ee72b054a4>2005-03-12 20:53:19 +0000
committersteven <steven@138bc75d-0d04-0410-961f-82ee72b054a4>2005-03-12 20:53:19 +0000
commit0cb07d28cc0a3b3f0a98de526070bd2aa5a65d6e (patch)
treee415a5bfe6d95178765f883b85a58a47d393ec72 /gcc/tree-cfg.c
parent82edb9dbdbf3391c2e769381b6decfdd315b05b4 (diff)
downloadgcc-0cb07d28cc0a3b3f0a98de526070bd2aa5a65d6e.tar.gz
* 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@96351 138bc75d-0d04-0410-961f-82ee72b054a4
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 0adfb3bd912..56b7bc2c95f 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. */