[gnu.g++.bug] g++-1.31.0 + patches cannot compile libg++-1.27.0

zhao@wiener.usc.edu (12/23/88)

System:   G++-1.31.0 + patches posted by Micheal Tiemann in this group.
Hardware: SUN3/60M
OS:	  3.4
Symptoms: builtin.cc in libg++-1.27.0 causes gcc-c++ to get a core dump 
	  in optimization stage as illustrated in following script. 
	  Note that g++-1.31.0 has successfully passed the test0 test.

Script started on Thu Dec 22 09:43:51 1988
[1]: g++ -c -v builtin.cc
g++ version 1.31.0
 /usr/wiener/local/lib/gcc-cpp+ -v -undef -D__GNU__ -D__GNUG__ -Dmc68000 -Dsun -Dunix builtin.cc /tmp/cca14169.cpp
GNU CPP version 1.31.0
 /usr/wiener/local/lib/gcc-c++ /tmp/cca14169.cpp -quiet -dumpbase builtin.cc -noreg -version -o /tmp/cca14169.s
GNU C++ version 1.31.0 (68k, MIT syntax) compiled by GNU C version 1.31.
 as -mc68020 /tmp/cca14169.s -o builtin.o
[2]: g++ -c -v -g -O -fchar-charconst builtin.cc
g++ version 1.31.0
 /usr/wiener/local/lib/gcc-cpp+ -v -undef -D__GNU__ -D__GNUG__ -Dmc68000 -Dsun -Dunix -D__OPTIMIZE__ builtin.cc /tmp/cca14173.cpp
GNU CPP version 1.31.0
 /usr/wiener/local/lib/gcc-c++ /tmp/cca14173.cpp -quiet -dumpbase builtin.cc -fchar-charconst -opt -version -G -o /tmp/cca14173.s
GNU C++ version 1.31.0 (68k, MIT syntax) compiled by GNU C version 1.31.
g++: Program c++ got fatal signal 6.
[3]: gdb /usr/wiener/local/lib/gcc-c++ core
GDB 2.6, Copyright (C) 1988 Free Software Foundation, Inc.
There is ABSOLUTELY NO WARRANTY for GDB; type "info warranty" for details.
GDB is free software and you are welcome to distribute copies of it
 under certain conditions; type "info copying" to see the conditions.
Reading symbol data from /usr/wiener/local/lib/gcc-c++...done.
Core file is from "gcc-c++".
Program terminated with signal 6, IOT trap.
Type "help" for a list of commands.
(gdb) where
#0  0x9d3d4 in kill ()
#1  0x60eba in push_reload (in=(rtx) 0x114814, out=(rtx) 0x0, inloc=(rtx *) 0x114828, outloc=(rtx *) 0x0, class=DATA_REGS, inmode=SImode, outmode=VOIDmode, strict_low=0, optional=0) (reload.c line 271)
#2  0x6323e in find_reloads (insn=(rtx) 0x114864, replace=0, ind_ok=0, live_known=1, reload_reg_p=(short *) 0xa80ea) (reload.c line 1651)
#3  0x64b2a in reload (first=(rtx) 0x1142c8, global=1, dumpfile=(struct _iobuf *) 0x0) (reload1.c line 448)
#4  0x5fa02 in global_alloc (file=(struct _iobuf *) 0x0) (global-alloc.c line 303)
#5  0x4dc2 in rest_of_compilation (decl=(tree) 0xf32b4) (toplev.c line 1447)
#6  0x1f10e in finish_function (call_poplevel=0) (cplus-decl.c line 6458)
#7  0xd678 in yyparse () (cplus-parse.y line 251)
#8  0x3704 in compile_file (name=(char *) 0xefff9a4 "/tmp/cca14173.cpp") (toplev.c line 1010)
#9  0x5cfa in main (argc=11, argv=(char **) 0xefff904, envp=(char **) 0xefff934) (toplev.c line 1824)
(gdb) quit
[4]: exit
[5]: 
script done on Thu Dec 22 09:45:49 1988

script done on Thu Dec 22 09:45:50 1988