aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-ccp.c
diff options
context:
space:
mode:
authorRichard Guenther <rguenther@suse.de>2010-08-10 09:16:22 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2010-08-10 09:16:22 +0000
commite80c2726d26a882c2ef35108b46aa5981a7a4513 (patch)
tree69f85b0d583ceda0fdc88c84ebf0b408827b5505 /gcc/tree-ssa-ccp.c
parenta024390f71187444954cc0001bdea390fb31551f (diff)
downloadgcc-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/tree-ssa-ccp.c')
-rw-r--r--gcc/tree-ssa-ccp.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/tree-ssa-ccp.c b/gcc/tree-ssa-ccp.c
index a016584..622fe14 100644
--- a/gcc/tree-ssa-ccp.c
+++ b/gcc/tree-ssa-ccp.c
@@ -515,8 +515,7 @@ get_value_from_alignment (tree expr)
val = bit_value_binop (PLUS_EXPR, TREE_TYPE (expr),
TREE_OPERAND (base, 0), TREE_OPERAND (base, 1));
else if (base
- && ((align = get_object_alignment (base, BITS_PER_UNIT,
- BIGGEST_ALIGNMENT))
+ && ((align = get_object_alignment (base, BIGGEST_ALIGNMENT))
> BITS_PER_UNIT))
{
val.lattice_val = CONSTANT;