2015-03-05 Steve Ellcey <sellcey@imgtec.com>
PR middle-end/65315
* cfgexpand.c (expand_stack_vars): Update large_align to maximum
needed alignment.
From-SVN: r221219
+2015-03-05 Steve Ellcey <sellcey@imgtec.com>
+
+ PR middle-end/65315
+ * cfgexpand.c (expand_stack_vars): Update large_align to maximum
+ needed alignment.
+
2015-03-05 Martin Liska <mliska@suse.cz>
* ipa-inline.c (inline_small_functions): Set default value to
i = stack_vars_sorted[si];
alignb = stack_vars[i].alignb;
+ /* All "large" alignment decls come before all "small" alignment
+ decls, but "large" alignment decls are not sorted based on
+ their alignment. Increase large_align to track the largest
+ required alignment. */
+ if ((alignb * BITS_PER_UNIT) > large_align)
+ large_align = alignb * BITS_PER_UNIT;
+
/* Stop when we get to the first decl with "small" alignment. */
if (alignb * BITS_PER_UNIT <= MAX_SUPPORTED_STACK_ALIGNMENT)
break;