Mail Archives: djgpp/1997/02/02/05:55:09
John M. Aldrich wrote:
>
> Brennan The Rev. Bas Underwood wrote:
> >
> > Also, don't compile with -O or -fomit-frame-pointer if you want a coherent
> > stack traceback.
>
> The traceback under gcc is usually 100% reliable even when -O or -O2 is
> used. Now if you start using -O3 and -fomit-frame-pointer, you could
> start hosing the debugging info, but one of the features of gcc is that
> debugging is still reliable even with optimizations.
I may be mistaken, but methinks gcc does not stand the inclusion of
both -fomit-frame-pointer and -g on the same command line.
Debugging with O2 is possible.
- Raw text -