[gnu.g++.bug] G++ 1.34.2 fails to compile libg++ on Sun3/SunOS4.0.1

mlm@CS.BROWN.EDU (04/05/89)

	I ftp'ed g++ 1.34.2 from stanford this evening (Tuesday, 
	9pm DST), so I was fairly sure all the recently posted updates
	would have made it to the tar file.  However, when I tried
	compiling libg++ 1.34.0, it failed to compile builtin.cc
	with the error message:

	as  -mc68020 -o builtin.o builtin.s
	as: error (builtin.s:1168): Invalid operand
	as: error (builtin.s:1185): Invalid operand

	The offending lines from the assembly file are:

(1167)  .stabs "_GLOBAL_$D$builtin_cc:F15",36,0,0,__GLOBAL_$D$builtin_cc
(1168)  .stabs "___DTOR_LIST__",22,0,0,__GLOBAL_$D$builtin_cc
(1169)  	.even
	...
(1184)  .stabs "_GLOBAL_$I$builtin_cc:F15",36,0,0,__GLOBAL_$I$builtin_cc
(1185)  .stabs "___CTOR_LIST__",22,0,0,__GLOBAL_$I$builtin_cc
(1186)  .stabs "New_Time:S53",40,0,0,_New_Time

	Any ideas?  Did I compile it with the wrong set of header
	files (it's happened before, but I don't think that's it,
	this time...)

							Moises

-----------------------------------------------------------------------------
Internet/CSnet:   mlm@cs.brown.edu		BITNET:  mlm@browncs.BITNET
UUCP:    ...!uunet!brunix!mlm			Phone:	 (401)863-7664
USmail:  Moises Lejter, Box 1910 Brown University, Providence RI 02912

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

Change this in the file called HINTS.  Perhaps this should go into README.

	If you are using a VAX, and for some reason use the native
	assembler instead of GAS, you will need to #define FASCIST_ASSEMBLER
	when compiling cplus-decl.c.  If you don't remember to do
	this, the assembler will remind you by telling you that it did
	not understand a stab which the compiler is trying to pass to
	the linker.

to this:

	If you are using a non-Sun machine, and use the native
	assembler instead of GAS, you will need to #define FASCIST_ASSEMBLER
	when compiling cplus-decl.c.  This is because Sun's as and GAS
	appear to be the only assemblers out there which assemble stabs
	instead of checking them.  If you don't remember to do
	this, the assembler will remind you by telling you that it did
	not understand a stab which the compiler is trying to pass to
	the linker.

Michael