Commit 7d3bf067 by Steven Bosscher

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
parent f39b4c07
2005-03-12 Steven Bosscher <stevenb@suse.de>
* 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.
2005-03-12 Kazu Hirata <kazu@cs.umass.edu> 2005-03-12 Kazu Hirata <kazu@cs.umass.edu>
* tree-ssa.c (kill_redundant_phi_nodes): Remove local variable * tree-ssa.c (kill_redundant_phi_nodes): Remove local variable
......
...@@ -837,7 +837,7 @@ label_to_block (tree dest) ...@@ -837,7 +837,7 @@ label_to_block (tree dest)
static void static void
make_goto_expr_edges (basic_block bb) make_goto_expr_edges (basic_block bb)
{ {
tree goto_t, dest; tree goto_t;
basic_block target_bb; basic_block target_bb;
int for_call; int for_call;
block_stmt_iterator last = bsi_last (bb); block_stmt_iterator last = bsi_last (bb);
...@@ -848,13 +848,10 @@ make_goto_expr_edges (basic_block 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 CALL_EXPR or MODIFY_EXPR), then the edge is an abnormal edge resulting
from a nonlocal goto. */ from a nonlocal goto. */
if (TREE_CODE (goto_t) != GOTO_EXPR) if (TREE_CODE (goto_t) != GOTO_EXPR)
{
dest = error_mark_node;
for_call = 1; for_call = 1;
}
else else
{ {
dest = GOTO_DESTINATION (goto_t); tree dest = GOTO_DESTINATION (goto_t);
for_call = 0; for_call = 0;
/* A GOTO to a local label creates normal edges. */ /* A GOTO to a local label creates normal edges. */
......
...@@ -221,7 +221,6 @@ static inline void ...@@ -221,7 +221,6 @@ static inline void
mark_stmt_necessary (tree stmt, bool add_to_worklist) mark_stmt_necessary (tree stmt, bool add_to_worklist)
{ {
gcc_assert (stmt); gcc_assert (stmt);
gcc_assert (stmt != error_mark_node);
gcc_assert (!DECL_P (stmt)); gcc_assert (!DECL_P (stmt));
if (NECESSARY (stmt)) if (NECESSARY (stmt))
......
...@@ -998,10 +998,6 @@ get_stmt_operands (tree stmt) ...@@ -998,10 +998,6 @@ get_stmt_operands (tree stmt)
_DECL. This indicates a bug in the gimplifier. */ _DECL. This indicates a bug in the gimplifier. */
gcc_assert (!SSA_VAR_P (stmt)); gcc_assert (!SSA_VAR_P (stmt));
/* Ignore error statements. */
if (TREE_CODE (stmt) == ERROR_MARK)
return;
ann = get_stmt_ann (stmt); ann = get_stmt_ann (stmt);
/* If the statement has not been modified, the operands are still valid. */ /* If the statement has not been modified, the operands are still valid. */
...@@ -1037,7 +1033,7 @@ get_expr_operands (tree stmt, tree *expr_p, int flags) ...@@ -1037,7 +1033,7 @@ get_expr_operands (tree stmt, tree *expr_p, int flags)
tree expr = *expr_p; tree expr = *expr_p;
stmt_ann_t s_ann = stmt_ann (stmt); stmt_ann_t s_ann = stmt_ann (stmt);
if (expr == NULL || expr == error_mark_node) if (expr == NULL)
return; return;
code = TREE_CODE (expr); code = TREE_CODE (expr);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment