Bootstrapping mainline on Tru64 UNIX V5.1B fails as of 20080613: libtool: compile: /vol/gccsrc/obj/gcc-4.4.0-20080613/5.1b-gcc/./gcc/xgcc -shared-libgcc -B/vol/gccsrc/obj/gcc-4.4.0-20080613/5.1b-gcc/./gcc -nostdinc++ -L/vol/gccsrc/obj/gcc-4.4.0-20080613/5.1b-gcc/alpha-dec-osf5.1b/libstdc++-v3/src -L/vol/gccsrc/obj/gcc-4.4.0-20080613/5.1b-gcc/alpha-dec-osf5.1b/libstdc++-v3/src/.libs -B/vol/gcc/alpha-dec-osf5.1b/bin/ -B/vol/gcc/alpha-dec-osf5.1b/lib/ -isystem /vol/gcc/alpha-dec-osf5.1b/include -isystem /vol/gcc/alpha-dec-osf5.1b/sys-include -I/vol/gccsrc/obj/gcc-4.4.0-20080613/5.1b-gcc/alpha-dec-osf5.1b/libstdc++-v3/include/alpha-dec-osf5.1b -I/vol/gccsrc/obj/gcc-4.4.0-20080613/5.1b-gcc/alpha-dec-osf5.1b/libstdc++-v3/include -I/vol/gccsrc/src/gcc-dist/libstdc++-v3/libsupc++ -fno-implicit-templates -Wall -Wextra -Wwrite-strings -Wcast-qual -fdiagnostics-show-location=once -g -O2 -mieee -I/vol/gccsrc/obj/gcc-4.4.0-20080613/5.1b-gcc/alpha-dec-osf5.1b/libstdc++-v3/include/backward -Wno-deprecated -c /vol/gcc/src/gcc-dist/libstdc++-v3/src/strst! ream.cc -DPIC -o .libs/strstream.o /vol/gcc/src/gcc-dist/libstdc++-v3/src/strstream.cc: In member function 'void std::ostrstream::_ZTv0_n24_NSt10ostrstreamD0Ev()': /vol/gcc/src/gcc-dist/libstdc++-v3/src/strstream.cc:419: internal compiler error: Segmentation fault
Running cc1plus on strstream.ii under gdb reveals: virtual std::strstream::~strstream() Program received signal SIGSEGV, Segmentation fault. alpha_end_function (file=0x300408000f8, fnname=0xe337c0 "_ZTv0_n24_NSt9strstreamD0Ev", decl=0xe8cc30) at /vol/gcc/src/gcc-dist/gcc/config/alpha/alpha.c:8216 (gdb) where #0 alpha_end_function (file=0x300408000f8, fnname=0xe337c0 "_ZTv0_n24_NSt9strstreamD0Ev", decl=0xe8cc30) at /vol/gcc/src/gcc-dist/gcc/config/alpha/alpha.c:8216 #1 0x00000001203c9450 in assemble_end_function (decl=0xe8cc30, fnname=0x14003e900 "") at /vol/gcc/src/gcc-dist/gcc/varasm.c:1775 #2 0x00000001201f3e70 in use_thunk (thunk_fndecl=0xe8cc30, emit_p=64 '@') at /vol/gcc/src/gcc-dist/gcc/cp/method.c:446 #3 0x0000000120202914 in emit_associated_thunks (fn=0x1402f3a60) at /vol/gcc/src/gcc-dist/gcc/cp/semantics.c:3144 #4 0x000000012047ca98 in cgraph_expand_function (node=0x10d2800) at /vol/gcc/src/gcc-dist/gcc/cgraphunit.c:1147 #5 0x000000012048041c in cgraph_optimize () at /vol/gcc/src/gcc-dist/gcc/cgraphunit.c:1211 #6 0x0000000120170564 in cp_write_global_declarations () at /vol/gcc/src/gcc-dist/gcc/cp/decl2.c:3524 #7 0x00000001204a1e3c in toplev_main (argc=1073993808, argv=0x140042f00) at /vol/gcc/src/gcc-dist/gcc/toplev.c:976 #8 0x00000001202c9b98 in main (argc=1082130680, argv=0xe337c0) at /vol/gcc/src/gcc-dist/gcc/main.c:35 void alpha_end_function (FILE *file, const char *fnname, tree decl ATTRIBUTE_UNUSED) { rtx insn; /* We output a nop after noreturn calls at the very end of the function to ensure that the return address always remains in the caller's code range, as not doing so might confuse unwinding engines. */ insn = get_last_insn (); if (!INSN_P (insn)) insn = prev_active_insn (insn); insn is NULL at INSN_P (insn). A reghunt reveals that this patch is the culprit: 2008-04-01 Jan Hubicka <[EMAIL PROTECTED]> * function.c (free_after_compilation): Free epilogue_delay_list. (prepare_function_start): Assert that previous compilation was freed. Jan, would you please have a look? Rainer -- Summary: [4.4 regression] cc1plus SEGV compiling strstream.cc on Tru64 UNIX Product: gcc Version: 4.4.0 Status: UNCONFIRMED Severity: major Priority: P3 Component: bootstrap AssignedTo: hubicka at gcc dot gnu dot org ReportedBy: ro at gcc dot gnu dot org GCC build triplet: alpha-dec-osf5.1b GCC host triplet: alpha-dec-osf5.1b GCC target triplet: alpha-dec-osf5.1b http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36851