diff options
author | Richard Guenther <rguenther@suse.de> | 2010-08-10 09:16:22 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2010-08-10 09:16:22 +0000 |
commit | e80c2726d26a882c2ef35108b46aa5981a7a4513 (patch) | |
tree | 69f85b0d583ceda0fdc88c84ebf0b408827b5505 /gcc/emit-rtl.c | |
parent | a024390f71187444954cc0001bdea390fb31551f (diff) | |
download | gcc-e80c2726d26a882c2ef35108b46aa5981a7a4513.zip gcc-e80c2726d26a882c2ef35108b46aa5981a7a4513.tar.gz gcc-e80c2726d26a882c2ef35108b46aa5981a7a4513.tar.bz2 |
tree.h (get_object_alignment): Adjust prototype.
2010-08-10 Richard Guenther <rguenther@suse.de>
* tree.h (get_object_alignment): Adjust prototype.
* builtins.c (get_object_alignment): Return unsigned int,
drop the align parameter. Handle MEM_REF, MISALIGNED_INDIRECT_REF
and TARGET_MEM_REF properly.
(get_pointer_alignment): Adjust.
* emit-rtl.c (get_mem_align_offset): Adjust comment.
(set_mem_attributes_minus_bitpos): Adjust.
* tree-ssa-ccp.c (get_value_from_alignment): Adjust.
From-SVN: r163051
Diffstat (limited to 'gcc/emit-rtl.c')
-rw-r--r-- | gcc/emit-rtl.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/emit-rtl.c b/gcc/emit-rtl.c index 91c5d857..267d634 100644 --- a/gcc/emit-rtl.c +++ b/gcc/emit-rtl.c @@ -1459,7 +1459,8 @@ get_mem_align_offset (rtx mem, unsigned int align) /* This function can't use if (!MEM_EXPR (mem) || !MEM_OFFSET (mem) || !CONST_INT_P (MEM_OFFSET (mem)) - || (get_object_alignment (MEM_EXPR (mem), MEM_ALIGN (mem), align) + || (MAX (MEM_ALIGN (mem), + get_object_alignment (MEM_EXPR (mem), align)) < align)) return -1; else @@ -1796,8 +1797,7 @@ set_mem_attributes_minus_bitpos (rtx ref, tree t, int objectp, if (!align_computed && !INDIRECT_REF_P (t)) { - unsigned int obj_align - = get_object_alignment (t, align, BIGGEST_ALIGNMENT); + unsigned int obj_align = get_object_alignment (t, BIGGEST_ALIGNMENT); align = MAX (align, obj_align); } } |