[Bug tree-optimization/56448] [4.8 Regression] cc1 hangs on volatile array with -O or above
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Feb 26 10:01:00 GMT 2013
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56448
--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> 2013-02-26 10:00:55 UTC ---
Author: jakub
Date: Tue Feb 26 10:00:31 2013
New Revision: 196278
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=196278
Log:
PR tree-optimization/56448
* fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
later operands of the references, or even first operand for
INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
* gcc.c-torture/compile/pr56448.c: New test.
Added:
trunk/gcc/testsuite/gcc.c-torture/compile/pr56448.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/fold-const.c
trunk/gcc/testsuite/ChangeLog
More information about the Gcc-bugs
mailing list