egcs-19981019 snapshot on hppa1.[01]-hp-hpux10.20 fails with a core dump preprocessing libgcc2.c with the stage2 cpp version. The stage1/cpp (built with egcs-1.1b) works fine. config.status ------------- #!/bin/sh # This file was generated automatically by configure. Do not edit. # This directory was configured as follows: ../egcs-19981019/configure --with-gcc-version-trigger=/devel/span/rdb/src/egcs-19981019/gcc/version.c --host=hppa1.0-hp-hpux10.20 --with-gnu-as --norecursion # using "mh-frag" build.log excerpt ---------------- if [ -f libgcc2.ready ] ; then \ true; \ else \ touch libgcc2.ready; \ fi case " c proto gcov CHILL c++ f77 java objc " in \ *" "[cC]"++ "*) \ echo tinfo.o tinfo2.o new.o opnew.o opnewnt.o opvnew.o opvnewnt.o opdel.o opdelnt.o opvdel.o opvdelnt.o exception.o > cplib2.new;; \ *) \ echo "" > cplib2.new;; \ esac mv -f cplib2.new cplib2.txt rm -f tmplibgcc2.a for name in _muldi3 _divdi3 _moddi3 _udivdi3 _umoddi3 _negdi2 _lshrdi3 _ashldi3 _ashrdi3 _ffsdi2 _udiv_w_sdiv _udivmoddi4 _cmpdi2 _ucmpdi2 _floatdidf _floatdisf _fixunsdfsi _fixunssfsi _fixunsdfdi _fixdfdi _fixunssfdi _fixsfdi _fixxfdi _fixunsxfdi _floatdixf _fixunsxfsi _fixtfdi _fixunstfdi _floatditf __gcc_bcmp _varargs __dummy _eprintf _bb _shtab _clear_cache _trampoline __main _exit _ctors _pure; \ do \ echo ${name}; \ ./xgcc -B./ -B/usr/local/hppa1.0-hp-hpux10.20/bin/ -O2 -DIN_GCC -W -Wall -O2 -g -O2 -I./include -fPIC -g1 -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -I. -I../../egcs-19981019/gcc -I../../egcs-19981019/gcc/config -I../../egcs-19981019/gcc/../include -c -DL${name} \ ../../egcs-19981019/gcc/libgcc2.c -o ${name}.o; \ if [ $? -eq 0 ] ; then true; else exit 1; fi; \ ` if [ -f /devel/span/rdb/src/egcs-19981019.obj.0/gcc/../binutils/ar ] ; then echo /devel/span/rdb/src/egcs-19981019.obj.0/gcc/../binutils/ar ; else if [ "hppa1.0-hp-hpux10.20" = "hppa1.0-hp-hpux10.20" ] ; then echo ar; else t='s,x,x,'; echo ar | sed -e $t ; fi; fi` rc tmplibgcc2.a ${name}.o; \ rm -f ${name}.o; \ done _muldi3 xgcc: Internal compiler error: program cpp got fatal signal 10 make[2]: *** [libgcc2.a] Error 1 make[2]: Leaving directory `/devel/span/rdb/src/egcs-19981019.obj.0/gcc' make[1]: *** [bootstrap-lean] Error 2 make[1]: Leaving directory `/devel/span/rdb/src/egcs-19981019.obj.0/gcc' make: *** [bootstrap-lean] Error 2 Script started on Thu Oct 22 15:22:50 1998 bash-2.02$ gdb ./cpp GNU gdb 4.17 Copyright 1998 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "hppa1.0-hp-hpux10.20"... Breakpoint 1 at 0x1b480 Breakpoint 2 at 0x89c0 Breakpoint 3 at 0x18c14: file ../../egcs-19981019/gcc/cccp.c, line 10642. (gdb) set args -lang-c -v -I./include -I. -I../../egcs-19981019/gcc -I../../egcs -19981019/gcc/config -I../../egcs-19981019/gcc/../include -isystem /usr/local/hp pa1.1-hp-hpux10.20/bin/include -isystem ./include -undef -D__GNUC__=2 -D__GNUC_M INOR__=92 -Dhppa -Dhp9000s800 -D__hp9000s800 -Dhp9k8 -DPWB -Dhpux -Dunix -D__hpp a__ -D__hp9000s800__ -D__hp9000s800 -D__hp9k8__ -D__PWB__ -D__hpux__ -D__unix__ -D__hppa -D__hp9000s800 -D__hp9k8 -D__PWB -D__hpux -D__unix '-Asystem(unix)' '-A system(hpux)' '-Acpu(hppa)' '-Amachine(hppa)' -D__OPTIMIZE__ -g1 -W -Wall -D__hp 9000s700 -D_PA_RISC1_1 -D_HPUX_SOURCE -D_HIUX_SOURCE -DIN_GCC -DIN_LIBGCC2 -D__G CC_FLOAT_NOT_NEEDED -DL_muldi3 ../../egcs-19981019/gcc/libgcc2.c (gdb) r Starting program: /devel/span/rdb/src/egcs-19981019.obj.0/gcc/./cpp -lang-c -v -I./include -I. -I../../egcs-19981019/gcc -I../../egcs-19981019/gcc/config -I../../egcs-19981019/gcc/../include -isystem /usr/local/hppa1.1-hp-hpux10.20/bin/include -isystem ./include -undef -D__GNUC__=2 -D__GNUC_MINOR__=92 -Dhppa -Dhp9000s800 -D__hp9000s800 -Dhp9k8 -DPWB -Dhpux -Dunix -D__hppa__ -D__hp9000s800__ -D__hp9000s800 -D__hp9k8__ -D__PWB__ -D__hpux__ -D__unix__ -D__hppa -D__hp9000s800 -D__hp9k8 -D__PWB -D__hpux -D__unix '-Asystem(unix)' '-Asystem(hpux)' '-Acpu(hppa)' '-Amachine(hppa)' -D__OPTIMIZE__ -g1 -W -Wall -D__hp9000s700 -D_PA_RISC1_1 -D_HPUX_SOURCE -D_HIUX_SOURCE -DIN_GCC -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -DL_muldi3 ../../egcs-19981019/gcc/libgcc2.c Breakpoint 1 at 0x7af48b98 Breakpoint 2 at 0x7af51dac GNU CPP version egcs-2.92.16 19981019 (gcc2 ss-980609 experimental) (hppa) #include "..." search starts here: #include <...> search starts here: include . ../../egcs-19981019/gcc ../../egcs-19981019/gcc/config ../../egcs-19981019/gcc/../include include /usr/local/include /usr/include End of search list. Program received signal SIGBUS, Bus error. 0xb68c in rescan (op=0x40006934, output_marks=0) at ../../egcs-19981019/gcc/cccp.c:2691 2691 switch (c) { (gdb) p c $1 = 10 '\n' (gdb) bt #0 0xb68c in rescan (op=0x40006934, output_marks=0) at ../../egcs-19981019/gcc/cccp.c:2691 #1 0xfcf0 in finclude (f=6, inc=0x40006608, op=0x40006934, system_header_p=95154, dirptr=0x4000b1f8) at ../../egcs-19981019/gcc/cccp.c:5360 #2 0xf01c in do_include (buf=0x0, limit=0x400016c8 "@\004GÀ", op=0x40006934, keyword=0x4000160c) at ../../egcs-19981019/gcc/cccp.c:4820 #3 0xdef8 in handle_directive (ip=0x40001888, op=0x40006934) at ../../egcs-19981019/gcc/cccp.c:4174 #4 0xbd14 in rescan (op=0x40006934, output_marks=0) at ../../egcs-19981019/gcc/cccp.c:2831 #5 0xfcf0 in finclude (f=6, inc=0x40006608, op=0x40006934, system_header_p=94, dirptr=0x4000b0d0) at ../../egcs-19981019/gcc/cccp.c:5360 #6 0xf01c in do_include (buf=0x0, limit=0x40001610 "@\004F\200", op=0x40006934, keyword=0x4000160c) at ../../egcs-19981019/gcc/cccp.c:4820 #7 0xdef8 in handle_directive (ip=0x40001854, op=0x40006934) at ../../egcs-19981019/gcc/cccp.c:4174 #8 0xbd14 in rescan (op=0x40006934, output_marks=0) at ../../egcs-19981019/gcc/cccp.c:2831 #9 0xfcf0 in finclude (f=6, inc=0x40006608, op=0x40006934, system_header_p=1955, dirptr=0x4000b1f8) at ../../egcs-19981019/gcc/cccp.c:5360 #10 0xf01c in do_include (buf=0x0, limit=0x400016d8 "@\004: ", op=0x40006934, keyword=0x4000160c) at ../../egcs-19981019/gcc/cccp.c:4820 #11 0xdef8 in handle_directive (ip=0x40001820, op=0x40006934) at ../../egcs-19981019/gcc/cccp.c:4174 #12 0xbd14 in rescan (op=0x40006934, output_marks=0) at ../../egcs-19981019/gcc/cccp.c:2831 #13 0xfcf0 in finclude (f=6, inc=0x40006608, op=0x40006934, system_header_p=28, dirptr=0x4000b0d0) at ../../egcs-19981019/gcc/cccp.c:5360 #14 0xf01c in do_include (buf=0x0, limit=0x40001634 "@", op=0x40006934, keyword=0x4000160c) at ../../egcs-19981019/gcc/cccp.c:4820 #15 0xdef8 in handle_directive (ip=0x400017ec, op=0x40006934) at ../../egcs-19981019/gcc/cccp.c:4174 #16 0xbd14 in rescan (op=0x40006934, output_marks=0) at ../../egcs-19981019/gcc/cccp.c:2831 #17 0xac84 in main (argc=52, argv=0x5800) at ../../egcs-19981019/gcc/cccp.c:2265 (gdb) x/10i $pc-0x10 0xb67c : copy r1,r18 0xb680 : ldbs,ma 1(sr0,r3),r4 0xb684 : ldi 7a,r19 0xb688 : comb,<< r19,r4,0xc788 0xb68c : stbs,ma r4,1(sr0,r5) 0xb690 : blr r4,r0 0xb694 : nop 0xb698 : b 0xc680 0xb69c : nop 0xb6a0 : b 0xc788 (gdb) l 2680 2675 skip_if_group (&instack[indepth], 1, NULL); 2676 2677 obp = op->bufp; 2678 RECACHE; 2679 2680 beg_of_line = ibp; 2681 2682 /* Our caller must always put a null after the end of 2683 the input at each input stack level. */ 2684 if (*limit != 0) (gdb) l 2685 abort (); 2686 2687 while (1) { 2688 c = *ibp++; 2689 *obp++ = c; 2690 2691 switch (c) { 2692 case '\\': 2693 if (*ibp == '\n' && !ip->macro) { 2694 /* At the top level, always merge lines ending with backslash-newline, (gdb) info reg flags: 32000041 r18: 40000e08 pcsqt: 46d4000 ccr: 290be0 r1: 46d4000 r19: 7a eiem: fffffffe cr12: 0 rp: c64f r20: 20d15 iir: ca41222 cr13: 0 r3: 7b03bac0 r21: 15e66 isr: 46d4000 cr24: 23e588 r4: a r22: 2f70612e ior: 15e66 cr25: 0 r5: 15e66 r23: 68220a00 ipsw: 4f80f cr26: fc194 r6: 400018bc r24: 1 goto: 175c50 mpsfu_hi: 0 r7: 400458d5 r25: 15e66 sr4: 46d4000 mpsfu_lo: 4799f8 r8: 40006934 r26: 40022b4d sr0: 46d4000 mpsfu_ov: 0 r9: 7c dp: 40001608 sr1: ac2b800 pad: 43b030 r10: 4005bb88 ret0: 40022b1e sr2: 6617400 fpsr: 0 r11: 40000e08 ret1: 7e sr3: 0 fpe1: 0 r12: 5800 sp: 7b03bb80 sr5: 5ab5000 fpe2: 0 r13: 0 r31: 612e6822 sr6: ac2b800 fpe3: 0 r14: 7b03b8c0 sar: 10 sr7: 0 fpe4: 0 r15: 40000e08 pcoqh: b68c cr0: fffb1 fpe5: 0 r16: 40045d22 pcsqh: 46d4000 cr8: c6000000 fpe6: 0 r17: 5c pcoqt: b690 cr9: fffffb3f fpe7: 0 (gdb) p *$r5 $2 = 68683943 (gdb) x/10c $r5 0x15e66 : 4 '\004' 24 '\030' 8 '\b' -89 '§' 10 '\n' 25 '\031' -24 'è' 89 'Y' 0x15e6e : 23 '\027' 89 'Y' (gdb) p obp $3 = (U_CHAR *) 0x15e66 "\004\030\b§\n\031èY\027Y\013\031\004\031KÖ>\231Hs" (gdb) p ibp $4 = ( U_CHAR *) 0x40045d23 "#ifndef TARGET_DEFAULT\n#define TARGET_DEFAULT 0x88\t\t/* TARGET_GAS + TARGET_JUMP_IN_DELAY */\n#endif\n\n#ifndef TARGET_CPU_DEFAULT\n#define TARGET_CPU_DEFAULT 0\n#endif\n\n#define TARGET_OPTIONS\t\t\t\\\n{\t\t\t\t\t\\\n "... (gdb) q The program is running. Exit anyway? (y or n) y bash-2.02$ exit exit script done on Thu Oct 22 15:25:54 1998