* config.gcc (sparcv9-solaris): Configure for 64-bit default.
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 16 Apr 2002 18:05:20 +0000 (18:05 +0000)
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 16 Apr 2002 18:05:20 +0000 (18:05 +0000)
        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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@52373 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config.gcc
gcc/doc/install.texi

index 0ff5bff..a72f6de 100644 (file)
@@ -1,3 +1,10 @@
+2002-04-16  Richard Henderson  <rth@redhat.com>
+
+       * 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 <dalej@apple.com>
 
        * config/rs6000/rs6000.c (rs6000_emit_cmove): Fail if modes of
@@ -12,7 +19,7 @@
 
 2002-04-16  Aldy Hernandez  <aldyh@redhat.com>
 
-        * config/rs6000/altivec.h (vec_addc): Type check.
+       * config/rs6000/altivec.h (vec_addc): Type check.
 
 2002-04-16  Jakub Jelinek  <jakub@redhat.com>
 
index ed7ac58..6a02466 100644 (file)
@@ -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"
index 5df9b0b..68e42ac 100644 (file)
@@ -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
 </p>