[PATCH] Fix PR 29609, being able to set a breakpoint on goto/continue/break

Steven Bosscher stevenb.gcc@gmail.com
Thu Apr 26 21:12:00 GMT 2007


On Thursday 26 April 2007 16:40, Tristan Gingold wrote:
> This patch fixes PR 29609: it was not possible to set a breakpoint on
> the 'goto'/'break'/'continue' statements when they were merged with a
> previous
> 'if' statement, even at -O0.  The fix is to slightly unoptimize a
> little bit
> more code generation (mostly prevents cleaning block forwarders).

I looked at this bug a bit too.  Did you check that we use the goto_locus
on the edge?  I wonder whether this problem goes away if you'd teach
cfgcleanup to set goto_locus when removing a forwarder.  That would IMHO
be a cleaner solution.

Gr.
Steven



More information about the Gcc-patches mailing list