Linux MIPS Architecture development
 help / color / mirror / Atom feed
From: "H . J . Lu" <hjl@lucon.org>
To: gcc-patches@gcc.gnu.org
Cc: linux-mips@oss.sgi.com
Subject: A patch for linux/mips libgcc
Date: Wed, 6 Jun 2001 14:55:34 -0700	[thread overview]
Message-ID: <20010606145534.A28021@lucon.org> (raw)

This patch is against gcc 2.86-85. But it is trivial to convert it for
gcc 3.0. The problem is

# gcc gcc/testsuite/gcc.c-torture/execute/ieee/fp-cmp-4.c  -w -O0  -ffloat-store  -lm 
 /tmp/ccaUWHSO.o: In function `test_isunordered':
gcc/testsuite/gcc.c-torture/execute/ieee/fp-cmp-4.c(.text+0x44): undefined reference to `__unorddf2'

I copied it from IRIX 6.

H.J.
---
2001-06-06  H.J. Lu <hjl@gnu.org>

	* config/mips/t-linux: New.

	* configure.in: Add mips/t-linux to tmake_file.

--- gcc/config/mips/t-linux.fp	Tue Jun  5 22:14:03 2001
+++ gcc/config/mips/t-linux	Tue Jun  5 22:24:33 2001
@@ -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
--- gcc/configure.in.fp	Tue Jun  5 22:14:03 2001
+++ gcc/configure.in	Tue Jun  5 22:14:03 2001
@@ -2747,7 +2747,7 @@ changequote([,])dnl
 		       mips*el-*)  tm_file="elfos.h mips/elfl.h mips/linux.h" ;;
 		       *)	  tm_file="elfos.h mips/elf.h mips/linux.h" ;;
 		esac
-		tmake_file=t-linux
+		tmake_file="t-linux mips/t-linux"
 		extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
 		gnu_ld=yes
 		gas=yes

             reply	other threads:[~2001-06-06 21:55 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-06-06 21:55 H . J . Lu [this message]
2001-06-07  0:45 ` A patch for linux/mips libgcc H . J . Lu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20010606145534.A28021@lucon.org \
    --to=hjl@lucon.org \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=linux-mips@oss.sgi.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox