This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Weird optimization bug...?
- From: Adrian Bentley <adruab at voria dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Wed, 02 Jun 2004 13:24:03 -0700
- Subject: Weird optimization bug...?
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