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.
Anonymous