From: Martin Jambor Date: Thu, 19 May 2016 15:19:59 +0000 (+0200) Subject: Respect --param ipa-max-agg-items=0 X-Git-Tag: releases/gcc-4.9.4~164 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=947f342d8490cd6ce26f33c4f19d90240722a563;p=thirdparty%2Fgcc.git Respect --param ipa-max-agg-items=0 2016-05-19 Martin Jambor PR ipa/70646 * ipa-prop.c (determine_locally_known_aggregate_parts): Bail out early if parameter PARAM_IPA_MAX_AGG_ITEMS is zero. From-SVN: r236476 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index b0f1aec6ef96..c6d4300d4849 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2016-05-19 Martin Jambor + + PR ipa/70646 + * ipa-prop.c (determine_locally_known_aggregate_parts): Bail out early + if parameter PARAM_IPA_MAX_AGG_ITEMS is zero. + 2016-05-19 Martin Jambor PR ipa/70646 diff --git a/gcc/ipa-prop.c b/gcc/ipa-prop.c index 4840dda29dcb..16afa2a610c4 100644 --- a/gcc/ipa-prop.c +++ b/gcc/ipa-prop.c @@ -1374,6 +1374,9 @@ determine_known_aggregate_parts (gimple call, tree arg, tree arg_type, bool check_ref, by_ref; ao_ref r; + if (PARAM_VALUE (PARAM_IPA_MAX_AGG_ITEMS) == 0) + return; + /* The function operates in three stages. First, we prepare check_ref, r, arg_base and arg_offset based on what is actually passed as an actual argument. */