Weird optimization bug...?
Adrian Bentley
adruab@voria.com
Wed Jun 2 20:24:00 GMT 2004
I have this crash bug in a templatized 2d blurring function. It does
not occur in debug mode and if I put a print statement in the loop to
tell me what iteration it is on, it does not occur either. I cannot see
any reason it seg faults when looking at dumped core or using gdb
manually, both using debug info + optimizations. It seems like an
optimization issue (i.e. when I force the print statement it doesn't do
the optimization that borks it...).
I just upgraded to gcc 3.3.2 (most recent "stable" version on gentoo)
and have been trying to get a company project to build correctly.
My first inclination is to upgrade to the lastest "unstable" gcc version
on portage (3.3.3 I think).
Any suggestions?
Adruab
More information about the Gcc-help
mailing list