mirror of git://gcc.gnu.org/git/gcc.git
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
This commit is contained in:
parent
ae0379fc53
commit
a096967747
|
|
@ -1,3 +1,9 @@
|
||||||
|
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.
|
||||||
|
|
||||||
2012-07-20 Richard Guenther <rguenther@suse.de>
|
2012-07-20 Richard Guenther <rguenther@suse.de>
|
||||||
|
|
||||||
* tree-inline.c (add_local_variables): Remove check_var_ann
|
* tree-inline.c (add_local_variables): Remove check_var_ann
|
||||||
|
|
|
||||||
|
|
@ -510,7 +510,7 @@ get_value_from_alignment (tree expr)
|
||||||
|
|
||||||
gcc_assert (TREE_CODE (expr) == ADDR_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
|
val.mask
|
||||||
= double_int_and_not (POINTER_TYPE_P (type) || TYPE_UNSIGNED (type)
|
= double_int_and_not (POINTER_TYPE_P (type) || TYPE_UNSIGNED (type)
|
||||||
? double_int_mask (TYPE_PRECISION (type))
|
? double_int_mask (TYPE_PRECISION (type))
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue