This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]