gcc 3.3.6 - stack corruption questions

Dale Johannesen dalej@apple.com
Mon Jul 25 23:00:00 GMT 2005


O Jul 25, 2005, at 3:50 PM, Robert Dewar wrote:
>> The unoptimized version completed a 401,900 transaction test with no
>> problem.  All day, I've been playing with different things,
>
> there are many bugs, most notably uninitialed vars, that show
> up only when you turn on optimization.

Also violations of strict aliasing rules are common.  -Wuninitialized
-fno-strict-aliasing [after the -O] will exercise those two.   Also,
mixed builds with some -O0 and some -O3 files should
narrow it down.



More information about the Gcc mailing list