From: rguenth Date: Wed, 25 Aug 2010 10:03:19 +0000 (+0000) Subject: 2010-08-25 Richard Guenther X-Git-Tag: upstream/4.9.2~27094 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=559c9389f9e707f42e9b883eff93c11e50105369;p=platform%2Fupstream%2Flinaro-gcc.git 2010-08-25 Richard Guenther PR middle-end/45379 * emit-rtl.c (set_mem_attributes_minus_bitpos): Handle TARGET_MEM_REF in alignment computation. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@163540 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 28a831a..f9a6082 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2010-08-25 Richard Guenther + + PR middle-end/45379 + * emit-rtl.c (set_mem_attributes_minus_bitpos): Handle + TARGET_MEM_REF in alignment computation. + 2010-08-25 Jakub Jelinek PR tree-optimization/45059 diff --git a/gcc/emit-rtl.c b/gcc/emit-rtl.c index 9f96abf..2993c93 100644 --- a/gcc/emit-rtl.c +++ b/gcc/emit-rtl.c @@ -1615,6 +1615,11 @@ set_mem_attributes_minus_bitpos (rtx ref, tree t, int objectp, align = MAX (align, TYPE_ALIGN (type)); } + else if (TREE_CODE (t) == TARGET_MEM_REF) + /* ??? This isn't fully correct, we can't set the alignment from the + type in all cases. */ + align = MAX (align, TYPE_ALIGN (type)); + else if (TREE_CODE (t) == MISALIGNED_INDIRECT_REF) { if (integer_zerop (TREE_OPERAND (t, 1)))