tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Don't let an explicit GOTO_EXPR slip through.

* tree-ssa-dce.c (mark_stmt_if_obviously_necessary)
	<GOTO_EXPR>: Don't let an explicit GOTO_EXPR slip through.

From-SVN: r89698
This commit is contained in:
Kazu Hirata 2004-10-27 18:20:26 +00:00 committed by Kazu Hirata
parent 36b8a0315c
commit 7f604986cc
2 changed files with 7 additions and 2 deletions

View file

@ -1,3 +1,8 @@
2004-10-27 Kazu Hirata <kazu@cs.umass.edu>
* tree-ssa-dce.c (mark_stmt_if_obviously_necessary)
<GOTO_EXPR>: Don't let an explicit GOTO_EXPR slip through.
2004-10-27 Daniel Berlin <dberlin@dberlin.org>
Fix PR tree-optimization/17133

View file

@ -325,8 +325,8 @@ mark_stmt_if_obviously_necessary (tree stmt, bool aggressive)
break;
case GOTO_EXPR:
if (! simple_goto_p (stmt))
mark_stmt_necessary (stmt, true);
gcc_assert (!simple_goto_p (stmt));
mark_stmt_necessary (stmt, true);
return;
case COND_EXPR: