OSDN Git Service

2004-11-23 Ralf Corsepius <ralf.corsepius@rtems.org>
[pf3gnuchains/gcc-fork.git] / gcc / config.gcc
index c1820cc..4b9bc94 100644 (file)
@@ -675,7 +675,7 @@ arm*-*-eabi* | arm*-*-symbianelf* )
        ;;
 arm*-*-rtems*)
        tm_file="dbxelf.h elfos.h arm/unknown-elf.h arm/elf.h arm/aout.h arm/arm.h arm/rtems-elf.h rtems.h"
-       tmake_file="arm/t-arm arm/t-arm-elf t-rtems"
+       tmake_file="arm/t-arm arm/t-arm-elf t-rtems arm/t-rtems"
        ;;
 arm*-*-elf | ep9312-*-elf)
        tm_file="dbxelf.h elfos.h arm/unknown-elf.h arm/elf.h arm/aout.h arm/arm.h"
@@ -695,6 +695,10 @@ arm*-*-kaos*)
        tm_file="dbxelf.h elfos.h arm/unknown-elf.h arm/elf.h arm/aout.h arm/arm.h kaos.h arm/kaos-arm.h"
        tmake_file="arm/t-arm arm/t-arm-elf"
        ;;
+avr-*-rtems*)
+       tm_file="avr/avr.h dbxelf.h avr/rtems.h rtems.h"
+       tmake_files="avr/t-avr t-rtems avr/t-rtems"
+       ;;
 avr-*-*)
        tm_file="avr/avr.h dbxelf.h"
        use_fixproto=yes
@@ -742,7 +746,7 @@ frv-*-*linux*)
        tmake_file="${tmake_file} frv/t-frv frv/t-linux"
        ;;
 h8300-*-rtems*)
-       tmake_file="h8300/t-h8300 t-rtems"
+       tmake_file="h8300/t-h8300 t-rtems h8300/t-rtems"
        tm_file="h8300/h8300.h dbxcoff.h h8300/coff.h h8300/rtems.h rtems.h"
        ;;
 h8300-*-elf*)
@@ -1012,7 +1016,12 @@ i[34567]86-*-sco3.2v5*)  # 80386 running SCO Open Server 5
        ;;
 i[34567]86-*-solaris2*)
        xm_defines="SMALL_ARG_MAX"
-       tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h i386/sysv4.h sol2.h i386/sol2.h"
+       tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h i386/sysv4.h sol2.h"
+       case ${target} in
+       *-*-solaris2.[0-6] | *-*-solaris2.[0-6].*)
+               tm_file="${tm_file} sol26.h"
+       esac
+       tm_file="${tm_file} i386/sol2.h"
        tmake_file="t-sol2 i386/t-sol2 t-svr4"
        c_target_objs="sol2-c.o"
        cxx_target_objs="sol2-c.o"
@@ -1020,6 +1029,7 @@ i[34567]86-*-solaris2*)
        tm_p_file="${tm_p_file} sol2-protos.h"
        if test x$gnu_ld = xyes; then
                tmake_file="$tmake_file t-slibgcc-elf-ver"
+               tm_defines="${tm_defines} TARGET_GNU_LD=1"
        else
                tmake_file="$tmake_file t-slibgcc-sld"
        fi
@@ -1028,10 +1038,34 @@ i[34567]86-*-solaris2*)
                tm_file="$tm_file tm-dwarf2.h"
                ;;
        esac
-       extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
+       case ${target} in
+       *-*-solaris2.1[0-9])
+               tm_file="${tm_file} i386/x86-64.h i386/sol2-10.h"
+               tm_defines="${tm_defines} TARGET_BI_ARCH=1"
+               tmake_file="$tmake_file i386/t-sol2-10"
+               need_64bit_hwint=yes
+               # Solaris 2.10 provides crt1.o, crti.o, crtn.o, and gcrt1.o as 
+               # part of the base system.
+               extra_parts="gmon.o crtbegin.o crtend.o"
+               ;;
+       *)
+               extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
+               ;;
+       esac
        case ${enable_threads}:${have_pthread_h}:${have_thread_h} in
-         "":yes:* | yes:yes:* ) thread_file=posix ;;
-         "":*:yes | yes:*:yes ) thread_file=solaris ;;
+         "":yes:* | yes:yes:* )
+               case ${target} in
+                 *-*-solaris2.[0-6] | *-*-solaris2.[0-6].*)
+                       thread_file=posix95
+                       ;;
+                 *)
+                       thread_file=posix
+                       ;;
+               esac
+               ;;
+         "":*:yes | yes:*:yes )
+               thread_file=solaris
+               ;;
        esac
        ;;
 i[34567]86-*-sysv5*)           # Intel x86 on System V Release 5
@@ -1888,7 +1922,12 @@ sparc64-*-solaris2* | sparcv9-*-solaris2*)
        need_64bit_hwint=yes
        ;;
 sparc-*-solaris2*)
-       tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sol2.h sparc/sol2.h"
+       tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sol2.h"
+       case ${target} in
+       *-*-solaris2.[0-6] | *-*-solaris2.[0-6].*)
+               tm_file="${tm_file} sol26.h"
+       esac
+       tm_file="${tm_file} sparc/sol2.h"
        if test x$gnu_ld = xyes; then
                tm_file="${tm_file} sparc/sol2-gld.h"
        fi
@@ -1925,8 +1964,19 @@ sparc-*-solaris2*)
        tm_p_file="${tm_p_file} sol2-protos.h"
        extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
        case ${enable_threads}:${have_pthread_h}:${have_thread_h} in
-         "":yes:* | yes:yes:* ) thread_file=posix ;;
-         "":*:yes | yes:*:yes ) thread_file=solaris ;;
+         "":yes:* | yes:yes:* )
+               case ${target} in
+                 *-*-solaris2.[0-6] | *-*-solaris2.[0-6].*)
+                       thread_file=posix95
+                       ;;
+                 *)
+                       thread_file=posix
+                       ;;
+               esac
+               ;;
+         "":*:yes | yes:*:yes )
+               thread_file=solaris
+               ;;
        esac
        ;;
 sparc-*-sysv4*)