Hi,
I've run into a code generation bug with GPC 2.1. When I use optimization -O2, a calculation uses an uninitialized register. With -O1 the generated code looks very different, and it works.
Compiler: Binary distribution of gpc 2.1 downloaded from http://www.gnu-pascal.de/binary/gpc-2.1-with-gcc.i686-pc-linux-gnu.tar.gz Computer: i586 running SuSE 7.2, kernel stock 2.4.17
I have not tried any newer versions of the compiler since i could not find binary versions and I do hesitate a bit to compile one myself. If binary versions of compiler snapshots where available, my guess is you would get a bigger testing audience.
regards Jan Kardell MIDA Systemutveckling AB