[fpc-devel] about bug 0016668 (-gt -O2)
Jonas Maebe
jonas.maebe at elis.ugent.be
Wed Jun 9 18:02:04 CEST 2010
On 08 Jun 2010, at 16:35, Martin wrote:
> Yes, trashing with 0 does not corrupt the code => I am aware of that.
>
> But as I pointed out, something else does (that something else may be Lazarus or FPC). So far I have no idea what this something else could be.
>
> There is a slight change, that correct trashing, may change the location of the error in a way that will allow it, to track the problem. Of course, it may not, it's ju7st a hope.
In case the problem is triggered by initialising with 0: you can make the compiler trash all local variables etc with 0 instead of with $55555555 by compiling with -gtttt instead of with -gt (and then you can try without -O2/-Ooregvar, which will make debugging easier). For completeness: -gtt uses $AAAAAAAA and -gttt uses $EFEFEFEF. Using more t's will just wrap around.
Jonas
More information about the fpc-devel
mailing list