This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Fix PR 29609, being able to set a breakpoint on goto/continue/break
- From: Steven Bosscher <stevenb dot gcc at gmail dot com>
- To: gcc-patches at gcc dot gnu dot org
- Cc: Tristan Gingold <gingold at adacore dot com>
- Date: Thu, 26 Apr 2007 23:04:58 +0200
- Subject: Re: [PATCH] Fix PR 29609, being able to set a breakpoint on goto/continue/break
- References: <7DED6660-B71E-4C19-9AA5-54BCEA20BB62@adacore.com>
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