andy@CSVAX.CALTECH.EDU (Andy Fyfe) (04/13/89)
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
schmidt@crimee.ics.uci.edu (Doug Schmidt) (04/13/89)
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 |