[gnu.g++.bug] G++ 1.31.0 aborts on libg++/builtin.cc

cooper@gecrux.steinmetz.ge.com (Clark Cooper) (12/17/88)

System:		GNU C++ version 1.31.0
Hardware:	Sun 3/280
OS:		Sun-OS 3.4

Configuration:	tm-sun3+.h -> tm.h
		m68k.md    -> md
		output-m68k.c -> aux-output.c

Symptoms:

	G++ aborts while compiling builtin.cc in the libg++-1.25.0
distribution with -O flag set. It successfully compiles without the
-O option.

Script:
=====================================================================
Script started on Fri Dec 16 13:51:22 1988
sculptorq% g++ -v -g -O -fchar-charconst -c builtin.cc
g++ version 1.31.0
 /usr/sculptorq/gnu/lib/gcc-cpp+ -v -undef -D__GNU__ -D__GNUG__ -Dmc68000 -Dsun -Dunix -D__OPTIMIZE__ builtin.cc /tmp/cca09710.cpp
GNU CPP version 1.31.0
 /usr/sculptorq/gnu/lib/gcc-c++ /tmp/cca09710.cpp -quiet -dumpbase builtin.cc -fchar-charconst -opt -version -G -o /tmp/cca09710.s
GNU C++ version 1.31.0 (68k, MIT syntax) compiled by GNU C version 1.31.
/usr/sculptorq/gnu/src/g++/g++: Program c++ got fatal signal 6.
sculptorq% gdb+ ../../lib/gcc-c++ core
GDB 2.8.0 (GNU C++ 1.27.0 compatible), 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.MC68020/sculptorq/gnu/src/libg++-1.25.0/../../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+) bt
#0  0x90688 in kill ()
#1  0x55b82 in push_reload (in=(rtx) 0x115fbc, out=(rtx) 0x0, inloc=(rtx *) 0x115fd0, outloc=(rtx *) 0x0, class=DATA_REGS, inmode=SImode, outmode=VOIDmode, strict_low=0, optional=0) (reload.c line 271)
#2  0x58018 in find_reloads (insn=(rtx) 0x11600c, replace=0, ind_ok=0, live_known=1, reload_reg_p=(short *) 0xa80ca) (reload.c line 1651)
#3  0x5974a in reload (first=(rtx) 0x115a50, global=1, dumpfile=(struct _iobuf *) 0x0) (reload1.c line 448)
#4  0x54714 in global_alloc (file=(struct _iobuf *) 0x0) (global-alloc.c line 303)
#5  0x3b7a in rest_of_compilation (decl=(tree) 0xf3e3a) (toplev.c line 1447)
#6  0x1c29c in finish_function (call_poplevel=0) (cplus-decl.c line 6458)
#7  0xbff4 in yyparse () (cplus-parse.y line 251)
#8  0x31aa in compile_file (name=(char *) 0xefffc28 "/tmp/cca09710.cpp") (toplev.c line 1010)
#9  0x46aa in main (argc=11, argv=(char **) 0xefffbbc, envp=(char **) 0xefffbec) (toplev.c line 1824)
(gdb+) q
sculptorq% ^D
script done on Fri Dec 16 13:54:07 1988
--
Clark Cooper       cooper@gecrux.steinmetz.ge.com, coopercc@crd.ge.com,
                   coopercc@ge-crd.arpa, ...!uunet!steinmetz!cooper