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
+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
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)
{