On 05 Aug 2006, at 04:17, Russell Whitaker wrote:
I got: 160 126835
using: Reading specs from /usr/local/lib/gcc/i686-pc-linux-gnu/3.4.6/specs Configured with: ../gcc-3.4.6/configure --enable-languages=c,c+ +,pascal --enable-shared --enable-threads-posix --enable-__cxa_atexit Thread model: posix gpc version 20060325, based on gcc-3.4.6
Sorry I forgot to mention my compiler version and platform:
Reading specs from /Developer/Pascal/gpc345u2/lib/gcc/powerpc-apple- darwin8/3.4.5/specs Configured with: ../gcc-3.4.5/configure --enable-languages=pascal,c -- enable-threads=posix --target=powerpc-apple-darwin8 --host=powerpc- apple-darwin8 --build=powerpc-apple-darwin8 --prefix=/Developer/ Pascal/gpc345u2 Thread model: posix gpc version 20051116, based on gcc-3.4.5
Although the output you get is also wrong (the 160 is correct, but the 126835 isn't).
Another one I found: the program below produces an internal compiler error (at least on 32 bit systems, but I guess you can create a similar one on 64 bit systems, possibly by increasing the size of the array to high(longint)+1)
*** type ta = packed 0..63; tb = packed array[0..3000000000] of ta;
var b: tb; begin writeln(b[3000000000]) end. ***
Gives:
$ gp packarr2 gp: warning: /Users/jonas/fpc/test/packarr2.pp: missing program header /Users/jonas/fpc/test/packarr2.pp:1: warning: missing program header /Users/jonas/fpc/test/packarr2.pp: In main program: /Users/jonas/fpc/test/packarr2.pp:10: error: could not split insn (insn 26 22 27 (set (reg:SI 0 r0 [129]) (const_int 2249981952 [0x861c0000])) 307 {*movsi_internal1} (nil) (nil)) /Users/jonas/fpc/test/packarr2.pp:10: internal compiler error: in final_scan_insn, at final.c:2429 Please submit a full bug report, with preprocessed source if appropriate. See URL:http://www.gnu-pascal.de/todo.html for instructions.
Jonas