gcc 20000828 and gas 2.10 don't work together on Solaris 2.7 ?

Stefan Thiede Stefan.Thiede@sv.sc.philips.com
Fri Sep 1 11:23:00 GMT 2000


gcc calls cc1 calls as   

and the innocent gcc -m64 gets translated into as -xarch=v9 which is
not a legal command line parameter for as 2.10

Am I doing something wrong or has this never been attempted before :-?

Stefan

sparky:gnu> gcc -m64 -v test.c
Reading specs from
/tools/sandbox/gnu/gcc-egcs-20000828-sun/lib/gcc-lib/sparc-sun-solaris2.7/2.96/specs
gcc version 2.96 20000828 (experimental)

/tools/sandbox/gnu/gcc-egcs-20000828-sun/lib/gcc-lib/sparc-sun-solaris2.7/2.96/cpp0
-lang-c -v -D__GNUC__=2 -D__GNUC_MINOR__=96 -D__GNUC_PATCHLEVEL__=0
-Dsparc -Dsun -Dunix -D__svr4__ -D__SVR4 -D__sparc__ -D__sun__
-D__unix__ -D__svr4__ -D__SVR4 -D__sparc -D__sun -D__unix -Asystem(unix)
-Asystem(svr4) -D__SIZE_TYPE__=long unsigned int -D__PTRDIFF_TYPE__=long
int -D__arch64__ -Acpu(sparc64) -Amachine(sparcv9) -D__sparcv9 test.c
/var/tmp/ccxhPYAS.i
GNU CPP version 2.96 20000828 (experimental) (cpplib)
 (sparc)
#include "..." search starts here:
#include <...> search starts here:
 /usr/local/include

/tools/sandbox/gnu/gcc-egcs-20000828-sun/lib/gcc-lib/sparc-sun-solaris2.7/2.96/include
 /tools/sandbox/gnu/gcc-egcs-20000828-sun/sparc-sun-solaris2.7/include
 /usr/include
End of search list.

/tools/sandbox/gnu/gcc-egcs-20000828-sun/lib/gcc-lib/sparc-sun-solaris2.7/2.96/cc1
/var/tmp/ccxhPYAS.i -mptr64 -mstack-bias -mno-v8plus -mcpu=v9 -quiet
-dumpbase test.c -m64 -version -o /var/tmp/ccIgxRWV.s
GNU C version 2.96 20000828 (experimental) (sparc-sun-solaris2.7)
compiled by GNU C version 2.96 20000828 (experimental).

/tools/sandbox/gnu/gcc-egcs-20000828-sun/lib/gcc-lib/sparc-sun-solaris2.7/2.96/../../../../sparc-sun-solaris2.7/bin/as
-V -Qy -s -xarch=v9 -o /var/tmp/ccScXD3K.o /var/tmp/ccIgxRWV.s
GNU assembler version 2.10 (sparc-sun-solaris2.7) using BFD version 2.10
Assembler messages:
Error: invalid architecture -xarch=v9

as -h ......

<some things cutted>

SPARC options:
-Av6 | -Av7 | -Av8 | -Asparclet | -Asparclite | -Asparc86x | -Av8plus |
-Av8plusa | -Av9 | -Av9a | 
-xarch=v8plus | -xarch=v8plusa
                        specify variant of SPARC architecture
-bump                   warn when assembler switches architectures
-sparc                  ignored
--enforce-aligned-data  force .long, etc., to be aligned correctly
-32                     create 32 bit object file
-64                     create 64 bit object file
                        [default is 32]


Alexandre Oliva wrote:
> 
> On Aug 31, 2000, Stefan Thiede <Stefan.Thiede@sv.sc.philips.com> wrote:
> 
> > sparky:gnu> gcc test.c -m64
> > Assembler messages:
> > Error: invalid architecture -xarch=v9
> 
> Add `-v' to this command line to make sure GCC is indeed running GNU
> as.  If not, check the on-line FAQ for instructions about how to make
> sure it does.
> 
> --
> Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
> Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
> CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
> Free Software Evangelist    *Please* write to mailing lists, not to me

-- 
-------------------------------------------------------------------
Stefan Thiede              Tel:   +1 (408) 991-5619
Philips Semiconductors     Fax:   +1 (408) 991-5589
811 E. Arques Avenue
M/S 42, P.O. Box 3409     mailto: Stefan.Thiede@sv.sc.philips.com
Sunnyvale, CA 94048-3409  seri  :        thiede@usmtvsc1


More information about the Gcc-help mailing list