From: Richard Henderson Date: Tue, 16 Apr 2002 18:05:20 +0000 (-0700) Subject: config.gcc (sparcv9-solaris): Configure for 64-bit default. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8947df0cbb2076cfb4bee2b628892d1249da723b;p=gcc.git config.gcc (sparcv9-solaris): Configure for 64-bit default. * config.gcc (sparcv9-solaris): Configure for 64-bit default. Adjust tm_file order to get TARGET_DEFAULT set properly. (sparc-solaris): Configure 2.[78] for 64-bit multilibs. * doc/install.texi (sparc-solaris): Update. From-SVN: r52373 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 0ff5bff7d7f..a72f6deaae9 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2002-04-16 Richard Henderson + + * config.gcc (sparcv9-solaris): Configure for 64-bit default. + Adjust tm_file order to get TARGET_DEFAULT set properly. + (sparc-solaris): Configure 2.[78] for 64-bit multilibs. + * doc/install.texi (sparc-solaris): Update. + 2002-04-16 Dale Johannesen * config/rs6000/rs6000.c (rs6000_emit_cmove): Fail if modes of @@ -12,7 +19,7 @@ 2002-04-16 Aldy Hernandez - * config/rs6000/altivec.h (vec_addc): Type check. + * config/rs6000/altivec.h (vec_addc): Type check. 2002-04-16 Jakub Jelinek diff --git a/gcc/config.gcc b/gcc/config.gcc index ed7ac580c1f..6a024667dc0 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -3077,8 +3077,8 @@ sparc-*-rtems*|sparc-*-rtemself*) thread_file='rtems' fi ;; -sparc64-*-solaris2*) - tm_file="sparc/biarch64.h sparc/sol2-64.h ${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sparc/sol2.h sparc/sol2-bi.h" +sparc64-*-solaris2* | sparcv9-*-solaris2*) + tm_file="sparc/biarch64.h ${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sparc/sol2.h sparc/sol2-64.h sparc/sol2-bi.h" if test x$gnu_ld = xyes; then tm_file="${tm_file} sparc/sol2-gld.h sparc/sol2-gld-bi.h" fi @@ -3126,7 +3126,7 @@ sparc-hal-solaris2*) esac thread_file='solaris' ;; -sparc-*-solaris2* | sparcv9-*-solaris2*) +sparc-*-solaris2*) tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sparc/sol2.h" if test x$gnu_ld = xyes; then tm_file="${tm_file} sparc/sol2-gld.h" @@ -3138,17 +3138,18 @@ sparc-*-solaris2* | sparcv9-*-solaris2*) tmake_file="$tmake_file t-slibgcc-sld" fi case $machine in - sparcv9-*) + *-*-solaris2.[0-6] | *-*-solaris2.[0-6].*) + if test x$gnu_ld = xno; then + tm_file="${tm_file} sparc/sol26-sld.h" + fi + ;; + *-*-solaris2.[789]) tm_file="sparc/biarch64.h ${tm_file} sparc/sol2-bi.h" if test x$gnu_ld = xyes; then tm_file="${tm_file} sparc/sol2-gld-bi.h" fi tmake_file="$tmake_file sparc/t-sol2-64" ;; - *-*-solaris2.[0-6] | *-*-solaris2.[0-6].*) - if test x$gnu_ld = xno; then - tm_file="${tm_file} sparc/sol26-sld.h" - fi esac xm_defines=POSIX extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o" diff --git a/gcc/doc/install.texi b/gcc/doc/install.texi index 5df9b0b77bd..68e42ac4319 100644 --- a/gcc/doc/install.texi +++ b/gcc/doc/install.texi @@ -3463,17 +3463,10 @@ option instead, which should be safe from those bugs and produce code that, unlike full 64-bit code, can still run on non-UltraSPARC machines. -The target tuple @code{sparc-sun-solaris} will be used for -configurations in which only 32-bit SPARC binaries may be executed; -@code{sparcv9-sun-solaris} will be used when either 32-bit or 64-bit -binaries may be executed, but the compiler will produce 32-bit -binaries unless the @option{-m64} switch is used; @code{sparc64-sun-solaris} -should be used when the compiler should produce 64-bit binaries -by default. - -Unless otherwise specified, @command{configure} will select either -@code{sparc} or @code{sparcv9} based on the output of @command{isalist}. -It will never select @code{sparc64} by default. +When configuring on a Solaris 7 or 8 system that is running a kernel +that supports only 32-bit binaries, one must configure with +@option{--disable-multilib}, since we will not be able to build the +64-bit target libraries. @html