aboutsummaryrefslogtreecommitdiff
path: root/gcc/gimple.c
diff options
context:
space:
mode:
authorRichard Guenther <rguenther@suse.de>2009-04-21 12:42:24 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2009-04-21 12:42:24 +0000
commitad8a1ac09d45ba7a3596434b4bd38d698a87c28e (patch)
tree22d69e3254dfc52ade3d116fba35897999da5b53 /gcc/gimple.c
parent7156c8abaf8f39f797463f60ec353b86c5c95bf6 (diff)
downloadgcc-ad8a1ac09d45ba7a3596434b4bd38d698a87c28e.zip
gcc-ad8a1ac09d45ba7a3596434b4bd38d698a87c28e.tar.gz
gcc-ad8a1ac09d45ba7a3596434b4bd38d698a87c28e.tar.bz2
re PR tree-optimization/39829 (ICE with some code that produces VCE)
2009-04-21 Richard Guenther <rguenther@suse.de> PR middle-end/39829 * gimple.c (walk_stmt_load_store_addr_ops): Catch addresses inside VIEW_CONVERT_EXPRs. * gcc.dg/torture/pr39829.c: New testcase. From-SVN: r146521
Diffstat (limited to 'gcc/gimple.c')
-rw-r--r--gcc/gimple.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/gimple.c b/gcc/gimple.c
index e499e49..5487cbc 100644
--- a/gcc/gimple.c
+++ b/gcc/gimple.c
@@ -3231,6 +3231,8 @@ walk_stmt_load_store_addr_ops (gimple stmt, void *data,
ret |= visit_store (stmt, lhs, data);
}
rhs = gimple_assign_rhs1 (stmt);
+ while (handled_component_p (rhs))
+ rhs = TREE_OPERAND (rhs, 0);
if (visit_addr)
{
if (TREE_CODE (rhs) == ADDR_EXPR)