[gnu.g++.bug] G++ 1.35.0- fails on Altos 3068

jkp@SAUNA.HUT.FI (Jyrki Kuoppala) (05/10/89)

G++.xtar.Z was from May 6, I think.  Previous version (when it still
was gcc-c++, around April 26) worked fine.  G++ was compiled with gcc
1.35.0 and compiled with files from gcc 1.35.0.

Here's what happens:

jkp@lupu '~' 136: g++ -v hello2.cc
g++ version 1.35.0-
 /usr/local/lib/gcc-cpp -+ -v -undef -D__GNU__ -D__GNUG__ -Dmc68000 -DPORTAR -Dm
c68k32 -Uvax -Dm68k -Dunix -D__mc68000__ -D__PORTAR__ -D__mc68k32__ -Uvax__ -D__
m68k__ -D__unix__ -Dmc68020 hello2.cc /tmp/cca02670.cpp
GNU CPP version 1.35
 /usr/local/lib/gcc-cc1plus /tmp/cca02670.cpp -quiet -dumpbase hello2.cc -noreg
-version -o /tmp/cca02670.s
GNU C++ version 1.35.0- (68k, MIT syntax) compiled by GNU C version 1.35.
g++: Program cc1plus got fatal signal 6.
jkp@lupu '~' 137: gdb /usr/local/lib/gcc-cc1plus core
GDB 3.1.2, 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/local/lib/gcc-cc1plus...done.
Core file is from "gcc-cc1plus".
Type "help" for a list of commands.
(gdb) bt
#0  0x96428 in kill ()
#1  0x93fc0 in abort ()
#2  0x54848 in decode_reg_name (asmspec=(tree) 0xd919a) (varasm.c line 154)
#3  0x549fe in make_decl_rtl (decl=(tree) 0xd9400, asmspec=(tree) 0xd919a, top_l
evel=1) (varasm.c line 182)
#4  0x3a3b8 in rest_of_decl_compilation (decl=(tree) 0xd9400, asmspec=(char *) 0
xd919a "__exit", top_level=1, at_end=0) (toplev.c line 1347)
#5  0x1005e in finish_decl (decl=(tree) 0xd9400, init=(tree) 0x0, asmspec=(char
*) 0xd919a "__exit") (cplus-decl.c line 3362)
#6  0x95c4 in yyparse () (cplus-p.y line 1376)
#7  0x39f7e in compile_file (name=(char *) 0xffece3 "/tmp/cca02670.cpp") (toplev
.c line 1160)
#8  0x3b4ba in main (argc=9, argv=(char **) 0xffec20, envp=(char **) 0xffec48) (
toplev.c line 2064)
(gdb) quit
jkp@lupu '~' 138: cat hello2.cc
#include <stddef.h>
#include <stream.h>

main()
{
printf ("hello world!\n");
cout << "Hello world2!\n";
}


//Jyrki

tiemann@YAHI.STANFORD.EDU (Michael Tiemann) (05/10/89)

There was a glitch in my update of varasm.c which caused this problem.
I posted patches for this glitch to bug-g++@prep.ai.mit.edu shortly
after the problem was discovered.  I am about ready to make another
tar file.  If you did not get the patches I posted to the net, you can
ftp the latest set (which are now getting kinda big, since I just
added static member functions), from ~ftp/pub/patches.

Michael