Commit f047e518 by Tom de Vries Committed by Tom de Vries

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
parent 2a6dcb7e
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
......
......@@ -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)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment