http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48694
--- Comment #7 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-04-26 09:21:47 UTC --- 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 <rguent...@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