diff options
author | Richard Biener <rguenther@suse.de> | 2017-03-09 13:20:03 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2017-03-09 13:20:03 +0000 |
commit | 26d7dc48b628d0fa16f2a1660b23602821c748f9 (patch) | |
tree | dca61888720a921a74449023227df9508f9e36ab /gcc/ipa-prop.c | |
parent | 35f77c2855c08fa329638e05d29b9b0d18caa5c1 (diff) | |
download | gcc-26d7dc48b628d0fa16f2a1660b23602821c748f9.zip gcc-26d7dc48b628d0fa16f2a1660b23602821c748f9.tar.gz gcc-26d7dc48b628d0fa16f2a1660b23602821c748f9.tar.bz2 |
re PR ipa/79970 (ICE in add_stack_var, at cfgexpand.c:450 with always_inline attribute)
2017-03-09 Richard Biener <rguenther@suse.de>
PR ipa/79970
* ipa-prop.c (ipa_modify_formal_parameters): Avoid changing
alignment of BLKmode params.
* gcc.dg/torture/pr79970.c: New testcase.
From-SVN: r246001
Diffstat (limited to 'gcc/ipa-prop.c')
-rw-r--r-- | gcc/ipa-prop.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/ipa-prop.c b/gcc/ipa-prop.c index d519cdf..b3d5159 100644 --- a/gcc/ipa-prop.c +++ b/gcc/ipa-prop.c @@ -4198,7 +4198,8 @@ ipa_modify_formal_parameters (tree fndecl, ipa_parm_adjustment_vec adjustments) else { ptype = adj->type; - if (is_gimple_reg_type (ptype)) + if (is_gimple_reg_type (ptype) + && TYPE_MODE (ptype) != BLKmode) { unsigned malign = GET_MODE_ALIGNMENT (TYPE_MODE (ptype)); if (TYPE_ALIGN (ptype) != malign) |