This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r179500 - in /trunk/gcc: ChangeLog fold-const.c...
- From: jakub at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Tue, 04 Oct 2011 12:34:07 -0000
- Subject: r179500 - in /trunk/gcc: ChangeLog fold-const.c...
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