config.gcc (mips*-*-netbsd*): Add mips/t-netbsd to ${tmake_file}.
authorJason Thorpe <thorpej@wasabisystems.com>
Fri, 7 Jun 2002 23:31:05 +0000 (23:31 +0000)
committerJason Thorpe <thorpej@gcc.gnu.org>
Fri, 7 Jun 2002 23:31:05 +0000 (23:31 +0000)
* config.gcc (mips*-*-netbsd*): Add mips/t-netbsd to ${tmake_file}.
* config/mips/t-netbsd: New file.

From-SVN: r54353

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

index 7c56a1a6e6e4bf2a97e32be968421186d48dd36c..db56e7f45fef037439e3f40b358ea31b76fb4321 100644 (file)
@@ -1,3 +1,8 @@
+2002-06-07  Jason Thorpe  <thorpej@wasabisystems.com>
+
+       * config.gcc (mips*-*-netbsd*): Add mips/t-netbsd to ${tmake_file}.
+       * config/mips/t-netbsd: New file.
+
 2002-06-07  Zack Weinberg  <zack@codesourcery.com>
 
        * cppinit.c (COMMAND_LINE_OPTIONS): Give all relevant -W
index a52740cdf3686d0b0b341d6fc2ae207259a86592..24e0c9b8df6b50e4b1c5fdb9154012da56c77c50 100644 (file)
@@ -1815,6 +1815,7 @@ mips*-*-netbsd*)                  # NetBSD/mips, either endian.
                tm_file="mips/little.h $tm_file" 
                ;;
        esac
+       tmake_file="${tmake_file} mips/t-netbsd"
        ;;
 mips*-*-linux*)                                # Linux MIPS, either endian.
         tm_file="dbxelf.h elfos.h svr4.h linux.h mips/linux.h"
diff --git a/gcc/config/mips/t-netbsd b/gcc/config/mips/t-netbsd
new file mode 100644 (file)
index 0000000..75db636
--- /dev/null
@@ -0,0 +1,20 @@
+# We want fine grained libraries, so use the new code to build the
+# floating point emulation libraries.
+FPBIT = fp-bit.c
+DPBIT = dp-bit.c
+
+dp-bit.c: $(srcdir)/config/fp-bit.c
+       echo '#ifdef __MIPSEL__' > dp-bit.c
+       echo '#define FLOAT_BIT_ORDER_MISMATCH' >> dp-bit.c
+       echo '#endif' >> dp-bit.c
+       echo '#undef US_SOFTWARE_GOFAST' >> dp-bit.c
+       echo '#undef FLOAT' >> dp-bit.c
+       cat $(srcdir)/config/fp-bit.c >> dp-bit.c
+
+fp-bit.c: $(srcdir)/config/fp-bit.c
+       echo '#ifdef __MIPSEL__' > fp-bit.c
+       echo '#define FLOAT_BIT_ORDER_MISMATCH' >> fp-bit.c
+       echo '#endif' >> fp-bit.c
+       echo '#undef US_SOFTWARE_GOFAST' >> fp-bit.c
+       echo '#define FLOAT' >> fp-bit.c
+       cat $(srcdir)/config/fp-bit.c >> fp-bit.c