Re: [Ada] Fix gnat.dg/return3.adb regression

2012-09-02 Thread H.J. Lu
On Sat, May 26, 2012 at 5:00 AM, Eric Botcazou wrote: > The problem is that the new call to cleanup_cfg in gimple_expand_cfg has > short-circuited the machinery that emits nops to carry goto locus at -O0. > The machinery works in CFGLAYOUT mode, but here we're still in CFGRTL. > > The attached pat

[Ada] Fix gnat.dg/return3.adb regression

2012-05-26 Thread Eric Botcazou
The problem is that the new call to cleanup_cfg in gimple_expand_cfg has short-circuited the machinery that emits nops to carry goto locus at -O0. The machinery works in CFGLAYOUT mode, but here we're still in CFGRTL. The attached patch makes it so that forwarder blocks are not deleted by try_op