I set the Makefile rule for stacks-native to use -O0 -fno-optimize-sibling-calls, but testd0opt still segfaults. I also tried with only -O0.
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