Re: [patch] Preserve return statements at -O0

2011-04-06 Thread Eric Botcazou
> Isn't one of the effects of this patch to generate debug info for the > artificial label decl? No, DECL_IGNORED_P is preserved on the label decl. > When I first saw your patch, I thought "FORCED_LABEL()", perhaps I'm > not sure that it's any better than your solution... Have you tried > that?

Re: [patch] Preserve return statements at -O0

2011-04-06 Thread Steven Bosscher
On Wed, Apr 6, 2011 at 8:57 AM, Eric Botcazou wrote: > this patchlet ensures that return statements are preserved at -O0 so that you > can put a breakpoint on them in the debugger. Isn't one of the effects of this patch to generate debug info for the artificial label decl? When I first saw your

Re: [patch] Preserve return statements at -O0

2011-04-06 Thread Richard Guenther
On Wed, Apr 6, 2011 at 8:57 AM, Eric Botcazou wrote: > Hi, > > this patchlet ensures that return statements are preserved at -O0 so that you > can put a breakpoint on them in the debugger. > > Bootstrapped/regtested on x86_64-suse-linux, OK for the mainline? Ok. Thanks, Richard. > > 2011-04-06

[patch] Preserve return statements at -O0

2011-04-06 Thread Eric Botcazou
Hi, this patchlet ensures that return statements are preserved at -O0 so that you can put a breakpoint on them in the debugger. Bootstrapped/regtested on x86_64-suse-linux, OK for the mainline? 2011-04-06 Eric Botcazou * gimple-low.c (lower_gimple_return): When not optimizing, forc