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
On Mon, Apr 30, 2007 at 02:15:25PM +0200, Steven Bosscher wrote:
> Hm no. Actually you're right. For the explicit goto we do need the
> separate basic block, because, as you said, we always end up stepping
> onto the break if it's treated as an implicit goto. Hmm... But that
> still feels wrong somehow. I need to think this over some more...
> Maybe we can still fix this in cfgexpand instead of adding extra basic
> blocks.
Quite possibly. Anyway, it's not the extra block I'm concerned about,
but the extra jump; until and unless someone comes up with a clever
way of representing this in the debug information, we need to emit
cmpl / jgt / jmp instead of cmpl / jle at -O0. Any way you can make
GCC do that, I'm satisfied. It would be nice to avoid the extra block
if we can do that.
--
Daniel Jacobowitz
CodeSourcery