diff options
author | jamborm <jamborm@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-11-08 16:41:06 +0000 |
---|---|---|
committer | jamborm <jamborm@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-11-08 16:41:06 +0000 |
commit | 85bab85fbbfceb6928ea43a3d01d33b181589e17 (patch) | |
tree | 7195db6d3d4f5d2e3d8fd6f1bd369c4a1cda222d /gcc/ipa-prop.c | |
parent | 3ceee3af81a15313484681b16550aa422efdcfeb (diff) | |
download | gcc-85bab85fbbfceb6928ea43a3d01d33b181589e17.tar.gz |
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: svn+ssh://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.c | 7 |
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)) |