#18 GCC optimizer is producing incorrect code

open
nobody
None
5
2012-09-21
2011-05-01
Anonymous
No

When compiling the OS4 port of Koules (http://aminet.net/game/actio/Koules_OS4.lha) with the -O2 flag under GCC 4.2.4, the resulting executable has a bug (specifically, that the P key only pauses the game while it is being held down). If it is compiled with the -O0 flag, the resulting executable doesn't have this bug. So it seems the optimizer is introducing bugs into the emitted code. Thanks for your attention.

Discussion


Anonymous


Cancel   Add attachments