]> git.ipfire.org Git - thirdparty/gcc.git/commit
fold-const.c (get_pointer_modulus_and_residue): New parameter allow_func_align.
authorMartin Jambor <mjambor@suse.cz>
Sat, 28 Mar 2009 18:10:14 +0000 (19:10 +0100)
committerMartin Jambor <jamborm@gcc.gnu.org>
Sat, 28 Mar 2009 18:10:14 +0000 (19:10 +0100)
commit617f389789b78deae9670bd5d2716d8189dcde58
treeec21a4926e278a7f693b166376b54cfbf7cf0c46
parentfe89fbc56dd937c74ebfe7338fe785699386cb59
fold-const.c (get_pointer_modulus_and_residue): New parameter allow_func_align.

2009-03-28  Martin Jambor  <mjambor@suse.cz>

* fold-const.c (get_pointer_modulus_and_residue): New parameter
allow_func_align.
(fold_binary): Allow function decl aligment consideration is the
second argument is integer constant one.
* tree-ssa-forwprop.c (simplify_bitwise_and): New function.
(tree_ssa_forward_propagate_single_use_vars): Handle assing statements
with BIT_AND_EXPR on the RHS by calling simplify_bitwise_and.

* g++.dg/tree-ssa/fwprop-align.C: New test.

From-SVN: r145203
gcc/ChangeLog
gcc/fold-const.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/tree-ssa/fwprop-align.C [new file with mode: 0644]
gcc/tree-ssa-forwprop.c