From 87b286c4dede5457d333cd76cc7b43a1ed9a7107 Mon Sep 17 00:00:00 2001 From: Sebastian Pop Date: Wed, 1 Dec 2010 17:25:20 +0000 Subject: [PATCH] LHS cannot be an ADDR_EXPR. 2010-11-26 Sebastian Pop * sese.c (rename_uses): Do not handle ADDR_EXPR in LHS of assignments. From-SVN: r167349 --- gcc/ChangeLog | 4 ++++ gcc/ChangeLog.graphite | 4 ++++ gcc/sese.c | 3 --- gcc/testsuite/ChangeLog | 2 +- 4 files changed, 9 insertions(+), 4 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 7540273c999..135c8aba469 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2010-11-29 Sebastian Pop + + * sese.c (rename_uses): Do not handle ADDR_EXPR in LHS of assignments. + 2010-12-01 Sebastian Pop PR middle-end/45297 diff --git a/gcc/ChangeLog.graphite b/gcc/ChangeLog.graphite index 4461ade8893..81147355054 100644 --- a/gcc/ChangeLog.graphite +++ b/gcc/ChangeLog.graphite @@ -1,3 +1,7 @@ +2010-11-26 Sebastian Pop + + * sese.c (rename_uses): Do not handle ADDR_EXPR in LHS of assignments. + 2010-11-22 Sebastian Pop PR middle-end/45297 diff --git a/gcc/sese.c b/gcc/sese.c index f5e41f5b3be..65f85566605 100644 --- a/gcc/sese.c +++ b/gcc/sese.c @@ -550,11 +550,8 @@ rename_uses (gimple copy, htab_t rename_map, gimple_stmt_iterator *gsi_tgt, if (TREE_CODE (new_expr) == INTEGER_CST) { - tree lhs = gimple_assign_lhs (copy); tree rhs = gimple_assign_rhs1 (copy); - if (TREE_CODE (lhs) == ADDR_EXPR) - recompute_tree_invariant_for_addr_expr (lhs); if (TREE_CODE (rhs) == ADDR_EXPR) recompute_tree_invariant_for_addr_expr (rhs); } diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 08e7788dd20..3f37499202a 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,4 +1,4 @@ -2010-11-29 Sebastian Pop +2010-12-01 Sebastian Pop PR middle-end/45297 * gcc.dg/graphite/pr45297.c: New. -- 2.30.2