This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]