There are leading null bytes on output with gpc-20041017.
$ gpc -v Reading specs from /usr/local/lib/gcc-lib/ia64-unknown-linux-gnu/3.3.3/specs Configured with: ../gcc-3.3.3/configure --enable-languages=c,p : (reconfigured) ../gcc-3.3.3/configure --enable-languages=c,pascal Thread model: posix gpc version 20041017, based on gcc-3.3.3 $ cat nullbytes.pas program main;
begin writeln(1.0:20:10); end. $ gpc nullbytes.pas $ ./a.out | od -x 0000000 0000 0000 2020 2020 2e31 3030 3030 3030 0000020 3030 3030 000a 0000025
I'd prefer if there were spaces :-)
Regards Thomas
Thomas Koenig wrote:
There are leading null bytes on output with gpc-20041017.
$ gpc -v Reading specs from /usr/local/lib/gcc-lib/ia64-unknown-linux-gnu/3.3.3/specs Configured with: ../gcc-3.3.3/configure --enable-languages=c,p : (reconfigured) ../gcc-3.3.3/configure --enable-languages=c,pascal Thread model: posix gpc version 20041017, based on gcc-3.3.3 $ cat nullbytes.pas program main;
begin writeln(1.0:20:10); end. $ gpc nullbytes.pas $ ./a.out | od -x 0000000 0000 0000 2020 2020 2e31 3030 3030 3030 0000020 3030 3030 000a 0000025
I'd prefer if there were spaces :-)
AFAICS those are known problems on 64-bit platforms (due to change in integer size). The patch at:
http://www.math.uni.wroc.pl/~hebisch/gpc/init_n3.diff
should correct the problem.