Hi Folks,
something went terribly wrong with the latest release of GPC on IRIX. Here is a short test code:
program testit;
var x:real;
begin x:=355/113; writeln(round(355/113):10); writeln(355/113:12:8); writeln(round(355/113):10,' ',355/113:12:8); writeln(355/113:12:8,' ',round(355/113)); writeln(round(355/113*100)); writeln(round(355/113*10000)); writeln(round(x):10); writeln(x:12:8); writeln(round(x),' ',x:12:8); writeln(round(x*100)); writeln(round(x*10000)); end.
And here is the output piped to 'cat -v' (note the invisible characters):
3 0.000.^@^@00 3 3.15923292 0.000.^@^@00 3 314 31416 3 0.000.^@^@00 3 0.00000000 314 31416
Also note that the real value in the third line is incorrect.
The version:
Reading specs from /usr/local/test/lib/gcc-lib/mips-sgi-irix6.5/2.95.2/specs gpc version 20010502, based on 2.95.2 19991024 (release)
The OS: IRIX 6.5.12
The log of the make process and the result of the test programs are attached.
The compilation of the most recent version of GPC is not resulting a valid binary.
Any idea about this?
Cheers,
miklos