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:
Richard Guenther 2012-07-20 11:24:55 +00:00 committed by Richard Biener
parent ae0379fc53
commit a096967747
2 changed files with 7 additions and 1 deletions

View File

@ -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>
* tree-inline.c (add_local_variables): Remove check_var_ann

View File

@ -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))