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:
parent
2a6dcb7e73
commit
f047e5183b
|
@ -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>
|
2011-07-30 Tom de Vries <tom@codesourcery.com>
|
||||||
|
|
||||||
PR middle-end/43513
|
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,
|
base = get_inner_reference (ref, &bitsize, &bitpos, &toffset, &mode,
|
||||||
&unsignedp, &volatilep, true);
|
&unsignedp, &volatilep, true);
|
||||||
base_type = TREE_TYPE (base);
|
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)
|
if (mode != BLKmode)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue