From fe7afdf5b55d1c3b8b00e7ea16b1b5df0537f45a Mon Sep 17 00:00:00 2001 From: Richard Biener Date: Tue, 9 Aug 2016 07:38:13 +0000 Subject: [PATCH] re PR target/68273 (Wrong code on mips/mipsel due to (invalid?) peeking at alignments in function_arg.) 2016-08-09 Richard Biener PR ipa/68273 * ipa-prop.c (ipa_modify_formal_parameters): Build parameter types with natural alignment also for the over-aligned case. From-SVN: r239273 --- gcc/ChangeLog | 7 +++++++ gcc/ipa-prop.c | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 5dbbb05823e..eb0dc1d014e 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2016-08-09 Richard Biener + + PR ipa/68273 + * ipa-prop.c (ipa_modify_formal_parameters): Build + parameter types with natural alignment also for the + over-aligned case. + 2016-08-08 Andi Kleen * tree-vrp.c (get_single_symbol): Always initialize inv and neg. diff --git a/gcc/ipa-prop.c b/gcc/ipa-prop.c index 132b622639c..4385614e330 100644 --- a/gcc/ipa-prop.c +++ b/gcc/ipa-prop.c @@ -3910,7 +3910,7 @@ ipa_modify_formal_parameters (tree fndecl, ipa_parm_adjustment_vec adjustments) if (is_gimple_reg_type (ptype)) { unsigned malign = GET_MODE_ALIGNMENT (TYPE_MODE (ptype)); - if (TYPE_ALIGN (ptype) < malign) + if (TYPE_ALIGN (ptype) != malign) ptype = build_aligned_type (ptype, malign); } } -- 2.30.2