aboutsummaryrefslogtreecommitdiff
path: root/gcc/ipa-prop.c
diff options
context:
space:
mode:
authorMartin Jambor <mjambor@suse.cz>2012-11-08 16:41:06 +0000
committerMartin Jambor <mjambor@suse.cz>2012-11-08 16:41:06 +0000
commit9e9f347e67ac43770246389d2b1a057ba53239c5 (patch)
tree7195db6d3d4f5d2e3d8fd6f1bd369c4a1cda222d /gcc/ipa-prop.c
parent66651035daf15f2d438b5d6857696045d5bb540d (diff)
2012-11-08 Martin Jambor <mjambor@suse.cz>
* ipa-prop.c (determine_known_aggregate_parts): Skip writes to different declarations when tracking writes to a declaration. * gfortran.dg/ipcp-array-1.f90: New test. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@193330 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ipa-prop.c')
-rw-r--r--gcc/ipa-prop.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ipa-prop.c b/gcc/ipa-prop.c
index f7323a638ed..b78dc65dbc7 100644
--- a/gcc/ipa-prop.c
+++ b/gcc/ipa-prop.c
@@ -1318,7 +1318,12 @@ determine_known_aggregate_parts (gimple call, tree arg,
break;
}
else if (lhs_base != arg_base)
- break;
+ {
+ if (DECL_P (lhs_base))
+ continue;
+ else
+ break;
+ }
if (lhs_offset + lhs_size < arg_offset
|| lhs_offset >= (arg_offset + arg_size))