🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

2 total messages Started by Andy Fyfe Wed, 12 Apr 1989 21:52
problem with ".stabs" in g++ 1.34.2, 1.35.0-
#1856
Author: Andy Fyfe
Date: Wed, 12 Apr 1989 21:52
18 lines
1297 bytes
On a sun3, sunos 3.5, using the sun assembler, I get the following
(taken from test0 in libg++-1.34.0):

% test-g++ -S -g -O -fchar-charconst -fsave-memoized -I/usr/local/lib/g++-include -DLDXX=\"/usr/local/lib/gcc-ld++\" -DCRT1X=\"/usr/local/lib/crt1+.o\" test.hello.cc -o test.s
/usr/include/sys/fcntl.h:64: warning: type declaration of flock shadows previous declaration
/usr/include/sys/fcntl.h:64: warning: `flock' was declared `extern' and later `static'
% test-g++ -c test.s
as: error (test.s:793): Invalid operand
as: error (test.s:815): Invalid operand

The offending lines are:
793:	.stabs "___DTOR_LIST__",22,0,0,__GLOBAL_$D$test_hello_cc
815:	.stabs "___CTOR_LIST__",22,0,0,__GLOBAL_$I$test_hello_cc

The gnu assembler has no problems.  I wasn't using the gnu assember since
I don't want it yet for gcc since it doesn't quite get sun2 binaries right.

--andy fyfe
Re: problem with ".stabs" in g++ 1.34.2, 1.35.0-
#1860
Author: Doug Schmidt
Date: Thu, 13 Apr 1989 00:06
30 lines
2074 bytes
In article <8904122152.AA08567@csvax.caltech.edu> andy@CSVAX.CALTECH.EDU (Andy Fyfe) writes:
++ On a sun3, sunos 3.5, using the sun assembler, I get the following
++ (taken from test0 in libg++-1.34.0):
++ 
++ % test-g++ -S -g -O -fchar-charconst -fsave-memoized -I/usr/local/lib/g++-include -DLDXX=\"/usr/local/lib/gcc-ld++\" -DCRT1X=\"/usr/local/lib/crt1+.o\" test.hello.cc -o test.s
++ /usr/include/sys/fcntl.h:64: warning: type declaration of flock shadows previous declaration
++ /usr/include/sys/fcntl.h:64: warning: `flock' was declared `extern' and later `static'
++ % test-g++ -c test.s
++ as: error (test.s:793): Invalid operand
++ as: error (test.s:815): Invalid operand
++ 
++ The offending lines are:
++ 793:	.stabs "___DTOR_LIST__",22,0,0,__GLOBAL_$D$test_hello_cc
++ 815:	.stabs "___CTOR_LIST__",22,0,0,__GLOBAL_$I$test_hello_cc
++ 
++ The gnu assembler has no problems.  I wasn't using the gnu assember since
++ I don't want it yet for gcc since it doesn't quite get sun2 binaries right.
++ 
++ --andy fyfe

Read the HINTS file in the distribution.  If your asm can't handle this
you need to #define FASCIST_ASSEMBER in cplus-decl.c to make things work
out.

Doug
--
On a clear day, under blue skies, there is no need to seek.
And asking about Buddha                +------------------------+
Is like proclaiming innocence,         | schmidt@ics.uci.edu    |
With loot in your pocket.              | office: (714) 856-4043 |
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads