It turns out there is one specific optimization to disable with gcc 4.7.x:
On Fri, Oct 19, 2012 at 02:20:56AM -0000, oleg@okmij.org wrote:No tested, but you could try -fno-optimize-sibling-calls:
> I'll see if I could find a pragma or other way to disable undesirable
> optimizations.
$ gcc --help=optimizers|grep "tail recursive"
-foptimize-sibling-calls Optimize sibling and tail recursive calls
Best,
--
Gabriel