r172954 - in /trunk/gcc: fold-const.c testsuite...

rguenth@gcc.gnu.org rguenth@gcc.gnu.org
Tue Apr 26 09:21:00 GMT 2011


Author: rguenth
Date: Tue Apr 26 09:21:44 2011
New Revision: 172954

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=172954
Log:
2011-04-26  Richard Guenther  <rguenther@suse.de>

	PR middle-end/48694
	* tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
	* fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
	compare the operands with OEP_CONSTANT_ADDRESS_OF.  Treat
	trees with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF
	is set.

	* gcc.dg/torture/pr48694-1.c: New testcase.
	* gcc.dg/torture/pr48694-2.c: Likewise.

Added:
    trunk/gcc/testsuite/gcc.dg/torture/pr48694-1.c
    trunk/gcc/testsuite/gcc.dg/torture/pr48694-2.c
Modified:
    trunk/gcc/fold-const.c
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/tree.h



More information about the Gcc-cvs mailing list