From 85bab85fbbfceb6928ea43a3d01d33b181589e17 Mon Sep 17 00:00:00 2001 From: jamborm Date: Thu, 8 Nov 2012 16:41:06 +0000 Subject: 2012-11-08 Martin Jambor * 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 --- gcc/ipa-prop.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'gcc/ipa-prop.c') 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)) -- cgit v1.2.1