/mnt/gnu/gcc-3.3/objdir/./gcc/xgcc -B/mnt/gnu/gcc-3.3/objdir/./gcc/ -B/opt/gnu/g cc/gcc-4.2.0/hppa2.0w-hp-hpux11.11/bin/ -B/opt/gnu/gcc/gcc-4.2.0/hppa2.0w-hp-hpu x11.11/lib/ -isystem /opt/gnu/gcc/gcc-4.2.0/hppa2.0w-hp-hpux11.11/include -isyst em /opt/gnu/gcc/gcc-4.2.0/hppa2.0w-hp-hpux11.11/sys-include -O2 -O2 -g -O2 -DI N_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold -style-definition -isystem ./include -fPIC -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -I. -I. -I../../gcc/gcc -I../../gcc/gcc/. -I../../gcc /gcc/../include -I../../gcc/gcc/../libcpp/include -I/opt/gnu/gcc/gcc-4.2.0/inclu de -I../../gcc/gcc/../libdecnumber -I../libdecnumber -DL_muldi3 -c ../../gcc/g cc/libgcc2.c -o libgcc/./_muldi3.o xgcc: Internal error: Segmentation fault (program cc1) Please submit a full bug report. See <URL:http://gcc.gnu.org/bugs.html> for instructions. make[4]: *** [libgcc/./_muldi3.o] Error 1
# ./xgcc -v Using built-in specs. Target: hppa2.0w-hp-hpux11.11 Configured with: ../gcc/configure --with-gnu-as --with-as=/opt/gnu/bin/as --enable-shared --disable-nls --with-local-prefix=/opt/gnu --prefix=/opt/gnu/gcc/gcc-4.2.0 --enable-debug=no --enable-threads=posix --with-gmp=/opt/gnu/gcc/gcc-4.2.0 --disable-libmudflap --enable-languages=c,c++,objc,obj-c++,fortran,java,ada Thread model: posix gcc version 4.2.0 20060205 (experimental) This error occurs when the "-mpa-risc-2-0" option is added to CC. I see this problem using both gcc 3.4.5 and 4.1.0 20060127 (prerelease) as the bootstrap compiler. gdb) r `cat xx.sh` Starting program: /mnt/gnu/gcc-3.3/objdir/gcc/cc1 `cat xx.sh` Breakpoint 3 at 0x7af87744 Breakpoint 4 at 0x7afeb230 Program received signal SIGSEGV, Segmentation fault. 0x008d7058 in htab_create_alloc (size=1, hash_f=0x4001850a <_crt_errno+3490>, eq_f=0x40018512 <_crt_errno+3498>, del_f=0, alloc_f=0x40017b5a <_crt_errno+1010>, free_f=0) at ../../gcc/libiberty/hashtab.c:295 295 size = prime_tab[size_prime_index].prime; (gdb) disass 0x008d7038 0x008d7078 Dump of assembler code from 0x8d7038 to 0x8d7078: 0x008d7038 <htab_create_alloc+56>: stw r3,-64(,sp) 0x008d703c <htab_create_alloc+60>: ldi 1,r26 0x008d7040 <htab_create_alloc+64>: depw,z ret0,27,28,r19 0x008d7044 <htab_create_alloc+68>: copy ret0,r5 0x008d7048 <htab_create_alloc+72>: copy r6,r22 0x008d704c <htab_create_alloc+76>: ldil 94b000,ret0 0x008d7050 <htab_create_alloc+80>: ldi 3c,r25 0x008d7054 <htab_create_alloc+84>: ldo 2b4(ret0),ret0 0x008d7058 <htab_create_alloc+88>: ldw r19(,ret0),r4 0x008d705c <htab_create_alloc+92>: be,l 27d68(sr4,r0),%sr0,%r31 0x008d7060 <htab_create_alloc+96>: copy rp,r31 0x008d7064 <htab_create_alloc+100>: movb,=,n ret0,r26,0x8d70d0 <htab_create_alloc+208> 0x008d7068 <htab_create_alloc+104>: copy r26,r3 0x008d706c <htab_create_alloc+108>: ldi 4,r25 0x008d7070 <htab_create_alloc+112>: copy r4,r26 0x008d7074 <htab_create_alloc+116>: copy r6,r22 (gdb) p/x $r19 $1 = 0xaedf0000 (gdb) p/x $ret0 $2 = 0x94b2b4 (gdb) p/x &prime_tab $3 = 0x94b2b4 -- Summary: ICE: Segmentation fault (program cc1) compiling _muldi3.o in stage1 Product: gcc Version: 4.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: danglin at gcc dot gnu dot org GCC build triplet: hppa2.0w-hp-hpux11.11 GCC host triplet: hppa2.0w-hp-hpux11.11 GCC target triplet: hppa2.0w-hp-hpux11.11 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26109