bootstrapping gives ICE in c-parser.o for gcc-4.1-20051022
stage1/xgcc -Bstage1/ -B/SCRATCH/gcc-build/IRIX64/mips-sgi-irix6.5/install/mips-sgi-irix6.5/bin/ -c -g -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmiss
ing-prototypes -pedantic -Wno-long-long -Wno-variadic-macros -Wold-style-definition -Wmissing-format-attribute -Werror -fno-common -DHAVE_CONFIG_H -I. -I. -I/raid/tecosi
m/it/devel/projects/develtools/src/gcc-4.1-20051022/gcc -I/raid/tecosim/it/devel/projects/develtools/src/gcc-4.1-20051022/gcc/. -I/raid/tecosim/it/devel/projects/develtool
s/src/gcc-4.1-20051022/gcc/../include -I./../intl -I/raid/tecosim/it/devel/projects/develtools/src/gcc-4.1-20051022/gcc/../libcpp/include -I/appl/shared/gnu/IRIX64/mips-sg
i-irix6.5/include -I/appl/shared/gnu/IRIX64/mips-sgi-irix6.5/include /raid/tecosim/it/devel/projects/develtools/src/gcc-4.1-20051022/gcc/c-parser.c -o c-parser.o
xgcc: Internal error: Trace/BPT/RangeErr/DivZero/Ovflow trap (program cc1)
configured with the following configure parameters:
configure --prefix=/SCRATCH/gcc-build/IRIX64/mips-sgi-irix6.5/install --with-gnu-as --with-as=/SCRATCH/gcc-
build/IRIX64/mips-sgi-irix6.5/install/bin/as --with-gnu-ld --with-ld=/SCRATCH/gcc-build/IRIX64/mips-sgi-irix6.5/install/bin/ld --disable-shared --enable-threads=posix --en
able-languages=c,ada,c++,fortran,objc,obj-c++ --with-gmp=/appl/shared/gnu/IRIX64/mips-sgi-irix6.5 --with-mpfr=/appl/shared/gnu/IRIX64/mips-sgi-irix6.5
using binutils 2.16.1
bootstrapping compiler gcc 4.0.2
same for gcc-4.1-20051029
Since I don't have access to an irix box anymore I'd really need the instruction it fails on at the least, some annotated assembly would be a good start (compile the failing file with -dap and attach the .s output).
Created attachment 10097 [details]
I compiled c-parser.c with the exact same commandline as in the bootstrap, except the added -S -dap switch. Output as attachment.
Additionally I tried to change the -O2 switch to -O1, wich failed too.
Compilation without optimization switch succeeds. If helpfull in any way, I may provide the output of these compilations too.
Also fails on at least tree-data-ref.c and tree-cfg.c with xgcc: Internal error: Trace/BPT/RangeErr/DivZero/Ovflow trap (program cc1)
The patch to 23585 is likely the cause.
Maybe a testcase in:
Changing to P1 since it's a regression that likely affects all mips (including primary platform mips-elf).
(In reply to comment #7)
> Changing to P1 since it's a regression that likely affects all mips (including
> primary platform mips-elf).
I don't know if it is allowed for someone to change the priority (except to P3 so that Mark can relook at the bug).
Bringing down to P3 and letting Mark set the priority.
I'm going to make this a P2. IRIX isn't a primary platform anymore. Thanks, Eric.
Oh, this effects mips-elf also which is a primary target.
It is failing in:
285 return offset % GET_MODE_SIZE (mode) != 0;
mode is BLKmode which has a mode size of 0.
The RTL which is failing:
(set (reg:DI 2 $2 )
(mem/s/c:BLK (plus:DI (reg/f:DI 29 $sp)
(const_int 8 [0x8])) [0+4 S8 A32])
(mem/s/c:QI (plus:DI (reg/f:DI 29 $sp)
(const_int 8 [0x8])) [0+4 S1 A32])
I don't even know what this instruction does but it is a MIPS specific issue.
Showstopper; bootstrap failure on primary target.
I think this is fixed now by:
* rtlanal.c (rtx_addr_can_trap_p_1) <PLUS>: Return 0 for an address
that can't trap plus a constant integer, if the mode has zero size.
Can you try again with today's compiler (or do you need to wait for a snapshot?)
Or you could try the patch in
(In reply to comment #15)
I'm trying the patch!
Result will follow.
Sorry, for the delay.
I had a machine fault on the weekend.
So, I'm trying the snapshot from 5th of november now!
Look's good so far, already in stage 2.
Bootstrap of gcc-4.1-20051105 succeeded for c,c++,objc,obj-c++.
Testsuite still in progress.
(In reply to comment #18)
> Bootstrap of gcc-4.1-20051105 succeeded for c,c++,objc,obj-c++.
> Testsuite still in progress.
This is good enough to close this as fixed. Thanks.