re PR middle-end/43513 (The stack pointer is adjusted twice)

2011-07-31  Tom de Vries  <tom@codesourcery.com>

	PR middle-end/43513
	* tree-ssa-loop-ivopts.c (may_be_unaligned_p): Use max of
	get_object_alignment and TYPE_ALIGN.

From-SVN: r176969
This commit is contained in:
Tom de Vries 2011-07-31 10:05:07 +00:00 committed by Tom de Vries
parent 2a6dcb7e73
commit f047e5183b
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2011-07-31 Tom de Vries <tom@codesourcery.com>
PR middle-end/43513
* tree-ssa-loop-ivopts.c (may_be_unaligned_p): Use max of
get_object_alignment and TYPE_ALIGN.
2011-07-30 Tom de Vries <tom@codesourcery.com>
PR middle-end/43513

View File

@ -1635,7 +1635,8 @@ may_be_unaligned_p (tree ref, tree step)
base = get_inner_reference (ref, &bitsize, &bitpos, &toffset, &mode,
&unsignedp, &volatilep, true);
base_type = TREE_TYPE (base);
base_align = TYPE_ALIGN (base_type);
base_align = get_object_alignment (base, BIGGEST_ALIGNMENT);
base_align = MAX (base_align, TYPE_ALIGN (base_type));
if (mode != BLKmode)
{