bug disappears if compiled with -O0
Kip Macy
kmacy@eventdriven.org
Mon Jul 26 21:19:00 GMT 2004
>
> > If the bug truly is a code generation bug, then you will need to read
> > assembly language to isolate the bug.
>
> I will as soon as I'm able to locate it. Could it be anything other than
> an optimization bug? The problem is reported also for gcc 2.95.4 on
> stable.
>
Recently I hit a bug caused by a doubleword unaligned store. It only
showed up with -O2 because the compiler would otherwise generate
single-word stores. You can try different compilers, but I would take a
close look at the generated code.
-Kip
More information about the Gdb
mailing list