The stage1 cc1 ICEs building libgcc/_muldi3.o on IRIX 6.2: /vol/gnu/src/gcc/gcc-dist-current/gcc/libgcc2.c: In function `__muldi3': /vol/gnu/src/gcc/gcc-dist-current/gcc/libgcc2.c:502: internal compiler error: tree check: accessed operand 4769025 of error_mark with 0 operands in expand_increment, at expr.c:9587 Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://gcc.gnu.org/bugs.html> for instructions. make[3]: *** [libgcc/./_muldi3.o] Error 1 Environment: System: IRIX lynx 6.2 03131015 IP22 host: mips-sgi-irix6.2 build: mips-sgi-irix6.2 target: mips-sgi-irix6.2 configured with: /vol/gnu/src/gcc/gcc-dist-current/configure --prefix=/vol/gcc --with-local-prefix=/vol/gcc --disable-nls --disable-multilib How-To-Repeat: Bootstrap current mainline with gcc (3.1 in this case). The same bootstrap works on IRIX 6.5.21. The failure even occurs with ./cc1 libgcc2.i.
Created attachment 4826 [details] preprocessed input
Rainer, which assembler are you using? Is it the same on both the irix6.2 and irix6.5 boxes? There's a bug in (some?) MIPSpro assemblers earlier than 7.30 that causes large functions with dwarf info to be misassembled.
Subject: Re: IRIX 6.2 bootstrap failure: ICE in expand_increment I had been using MIPSpro 7.20 as on 6.2, but either 7.30 or 7.40/7.41 on 6.5. I've now installed IDF/IDL 1.2/MIPSpro 7.3 with the relevant patches, and bootstrap is past stage1 with this. I'll prepare a patch for install.texi to document this. Thanks. Rainer
Not a gcc bug.