r179500 - in /trunk/gcc: ChangeLog fold-const.c...
jakub@gcc.gnu.org
jakub@gcc.gnu.org
Tue Oct 4 12:34:00 GMT 2011
Author: jakub
Date: Tue Oct 4 12:34:06 2011
New Revision: 179500
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=179500
Log:
* fold-const.c (fold_unary_loc): Don't optimize
POINTER_PLUS_EXPR casted to TYPE_RESTRICT pointer by
casting the inner pointer if it isn't TYPE_RESTRICT.
* tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't through
casts from non-TYPE_RESTRICT pointer to TYPE_RESTRICT pointer.
* gcc.dg/tree-ssa/restrict-4.c: New test.
Added:
trunk/gcc/testsuite/gcc.dg/tree-ssa/restrict-4.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/fold-const.c
trunk/gcc/testsuite/ChangeLog
trunk/gcc/tree-ssa-forwprop.c
More information about the Gcc-cvs
mailing list