http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54693



Jakub Jelinek <jakub at gcc dot gnu.org> changed:



           What    |Removed                     |Added

----------------------------------------------------------------------------

             Status|RESOLVED                    |REOPENED

         Resolution|FIXED                       |



--- Comment #16 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-11-06 
09:45:58 UTC ---

Not completely.  Apparently the new testcase fails on both x86_64-linux and

i686-linux with -O1 -g.  The reason for that is that with -O1 jump threading

isn't performed, and the bb duplication is done in tree-ssa-loop-ch.c instead.



So, I'd say we want to do something similar to what

propagate_threaded_block_debug_into does, in copy_loop_headers or so, on

copied_bbs, copying debug stmts into the loop body (exit->dest before the

gimple_duplicate_sese_region call).

Calling p propagate_threaded_block_debug_into (exit->dest, entry->dest)

from the debugger fixed the testcase for -O1 -g.

Reply via email to