On Saturday 26 July 2003 19:07, Håvard Wall wrote: > Ciaran McCreesh wrote: > >> To be certain my original CFLAGS was "-march=athlon-xp -O3 -mmmx -msse > >> -m3dnow -mfpmath=sse -pipe" which I changed to "-march=athlon-xp -O2 > >> -mfpmath=sse -fomit-frame-pointer -pipe". Come to think of it the > >> performance gain may be due to the omit-frame-pointer flag. Comments? > > > > I'm pretty sure -O3 includes omit-frame-pointer by default... > > Nope. I believe the frame pointer is needed by debuggers and debugging > should still be possible with -O3. The gcc manual states: > > [ > -O3 Optimize yet more. -O3 turns on all optimizations specified by -O2 > and also turns on the -finline-functions and -frename-registers options. > ]
No, you're not wrong. This is correct. Actually, when I wrote that -O3 turns on -fomit-frame-pointer, I thought I may have been wrong and was just too lazy to check. Jason -- [EMAIL PROTECTED] mailing list