From 29799e9db1ee2bcb8113d96adc965c7a1a284aaa Mon Sep 17 00:00:00 2001 From: Martin Jambor Date: Wed, 18 May 2016 15:06:24 +0200 Subject: [PATCH] Respect --param ipa-max-agg-items=0 2016-05-18 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: r236390 --- gcc/ChangeLog | 6 ++++++ gcc/ipa-prop.c | 3 +++ 2 files changed, 9 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index b39886853f6..1f6d29b29d1 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2016-05-18 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-18 Martin Jambor PR ipa/70646 diff --git a/gcc/ipa-prop.c b/gcc/ipa-prop.c index 65482bad366..f02ec474dc9 100644 --- a/gcc/ipa-prop.c +++ b/gcc/ipa-prop.c @@ -1414,6 +1414,9 @@ determine_locally_known_aggregate_parts (gcall *call, tree arg, 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. */ -- 2.30.2