aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-ccp.c
diff options
context:
space:
mode:
authorRichard Guenther <rguenther@suse.de>2012-07-20 11:24:55 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2012-07-20 11:24:55 +0000
commita09696774774031a39b305c94a71f3fc84140c45 (patch)
treec9b8e2669695394154622b73b79f56883906002e /gcc/tree-ssa-ccp.c
parentae0379fc53552f4251134ab56b5a06b42d2f8fc2 (diff)
downloadgcc-a09696774774031a39b305c94a71f3fc84140c45.zip
gcc-a09696774774031a39b305c94a71f3fc84140c45.tar.gz
gcc-a09696774774031a39b305c94a71f3fc84140c45.tar.bz2
re PR tree-optimization/54031 (Revision 189607 miscompiles Linux kernel)
2012-07-20 Richard Guenther <rguenther@suse.de> PR tree-optimization/54031 * tree-ssa-ccp.c (get_value_from_alignment): Use get_pointer_alignment_1. From-SVN: r189715
Diffstat (limited to 'gcc/tree-ssa-ccp.c')
-rw-r--r--gcc/tree-ssa-ccp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/tree-ssa-ccp.c b/gcc/tree-ssa-ccp.c
index 3f88f39..83ed653 100644
--- a/gcc/tree-ssa-ccp.c
+++ b/gcc/tree-ssa-ccp.c
@@ -510,7 +510,7 @@ get_value_from_alignment (tree expr)
gcc_assert (TREE_CODE (expr) == ADDR_EXPR);
- get_object_alignment_1 (TREE_OPERAND (expr, 0), &align, &bitpos);
+ get_pointer_alignment_1 (expr, &align, &bitpos);
val.mask
= double_int_and_not (POINTER_TYPE_P (type) || TYPE_UNSIGNED (type)
? double_int_mask (TYPE_PRECISION (type))