aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/tree-ssa-dce.c11
2 files changed, 6 insertions, 10 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 8ef733d..c644bde 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2006-01-30 Zdenek Dvorak <dvorakz@suse.cz>
+
+ * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Remove
+ unreachable code.
+
2006-01-30 Ulrich Weigand <uweigand@de.ibm.com>
PR target/26018
diff --git a/gcc/tree-ssa-dce.c b/gcc/tree-ssa-dce.c
index c8b98d3..1b25f27 100644
--- a/gcc/tree-ssa-dce.c
+++ b/gcc/tree-ssa-dce.c
@@ -285,8 +285,7 @@ static void
mark_stmt_if_obviously_necessary (tree stmt, bool aggressive)
{
stmt_ann_t ann;
- tree op, def;
- ssa_op_iter iter;
+ tree op;
/* With non-call exceptions, we have to assume that all statements could
throw. If a statement may throw, it is inherently necessary. */
@@ -372,14 +371,6 @@ mark_stmt_if_obviously_necessary (tree stmt, bool aggressive)
return;
}
- FOR_EACH_SSA_TREE_OPERAND (def, stmt, iter, SSA_OP_DEF)
- {
- if (is_global_var (SSA_NAME_VAR (def)))
- {
- mark_stmt_necessary (stmt, true);
- return;
- }
- }
if (is_hidden_global_store (stmt))
{
mark_stmt_necessary (stmt, true);