Add SB-1 specific multilib support. Patch by Fred Fish.
authorFred Fish <fnf@specifix.com>
Mon, 26 Jun 2006 21:16:30 +0000 (21:16 +0000)
committerJim Wilson <wilson@gcc.gnu.org>
Mon, 26 Jun 2006 21:16:30 +0000 (14:16 -0700)
* config/mips/t-sb1: New file.
* config.gcc (mipsisa64sb1-*-elf*): Add mips/t-sb1 to
tmake_file list.

From-SVN: r115024

gcc/ChangeLog
gcc/config.gcc
gcc/config/mips/t-sb1 [new file with mode: 0644]

index 6066846ef8f290f0aa277c96f2823d08c5cc659d..6ff1846bd100a0d1909dfb450b56d1974413f2e3 100644 (file)
@@ -1,3 +1,9 @@
+2006-06-26  Fred Fish  <fnf@specifix.com>
+
+       * config/mips/t-sb1: New file.
+       * config.gcc (mipsisa64sb1-*-elf*): Add mips/t-sb1 to
+       tmake_file list.
+
 2006-06-26  DJ Delorie  <dj@redhat.com>
 
        * config/m32c/m32c.c (m32c_print_operand): Fix sign-merging logic.
index b184a4077e6ae8c7abf8464648836d8d2f92c2f2..a4b1fb3460b73c21c0f96ae48cacbdcaa2799065 100644 (file)
@@ -1553,7 +1553,7 @@ mipsisa64sr71k-*-elf*)
         ;;
 mipsisa64sb1-*-elf* | mipsisa64sb1el-*-elf*)
        tm_file="elfos.h ${tm_file} mips/elf.h"
-       tmake_file=mips/t-elf
+       tmake_file="mips/t-elf mips/t-sb1"
        target_cpu_default="MASK_64BIT|MASK_FLOAT64"
        tm_defines="${tm_defines} MIPS_ISA_DEFAULT=64 MIPS_CPU_STRING_DEFAULT=\\\"sb1\\\" MIPS_ABI_DEFAULT=ABI_O64"
        use_fixproto=yes
diff --git a/gcc/config/mips/t-sb1 b/gcc/config/mips/t-sb1
new file mode 100644 (file)
index 0000000..b181bb7
--- /dev/null
@@ -0,0 +1,44 @@
+# GP-rel: G0 only
+#
+# Endianness: EB or EL
+#
+# ABIs: mabi=32
+#      mabi=o64
+#      mabi=o64/mlong64
+#
+# FPU: (default mhard-float)
+#      msoft-float (only for mabi=32)
+#
+
+MULTILIB_EXTRA_OPTS = G0
+
+MULTILIB_OPTIONS =                     \
+       EB/EL                           \
+       mabi=32/mabi=o64                \
+       mips32/mips64                   \
+       mlong64/msoft-float             \
+
+MULTILIB_DIRNAMES =                    \
+       eb el                           \
+       o32 o64                         \
+       mips32 mips64                   \
+       long64 soft-float               \
+
+MULTILIB_MATCHES =                     \
+       EB=meb EL=mel                   \
+
+MULTILIB_EXCEPTIONS =                  \
+        *mabi=32/*mlong64*             \
+
+MULTILIB_EXCLUSIONS =                  \
+       mips32/!mabi=32                 \
+       mabi=32/!mips32                 \
+       msoft-float/!mabi=32            \
+
+# Small multilib list for quick builds and tests.
+# Must either comment out everything above these lines, or everything below
+# these lines.
+
+#MULTILIB_OPTIONS = EB/EL msoft-float
+#MULTILIB_DIRNAMES = eb el soft-float
+#MULTILIB_MATCHES = EB=meb EL=mel