http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56098
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED --- Comment #11 from Jakub Jelinek <jakub at gcc dot gnu.org> 2013-04-03 18:20:54 UTC --- Author: jakub Date: Wed Apr 3 18:02:57 2013 New Revision: 197449 URL: http://gcc.gnu.org/viewcvs?rev=197449&root=gcc&view=rev Log: Backported from mainline 2013-01-25 Jakub Jelinek <ja...@redhat.com> PR tree-optimization/56098 * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr for stmts with volatile ops. (cond_store_replacement): Don't optimize if assign has volatile ops. (cond_if_else_store_replacement_1): Don't optimize if either then_assign or else_assign have volatile ops. * gcc.dg/pr56098-1.c: New test. Added: branches/gcc-4_6-branch/gcc/testsuite/gcc.dg/pr56098-1.c Modified: branches/gcc-4_6-branch/gcc/ChangeLog branches/gcc-4_6-branch/gcc/testsuite/ChangeLog branches/gcc-4_6-branch/gcc/tree-ssa-phiopt.c