* A patch for linux/mips libgcc
@ 2001-06-06 21:55 H . J . Lu
2001-06-07 0:45 ` H . J . Lu
0 siblings, 1 reply; 2+ messages in thread
From: H . J . Lu @ 2001-06-06 21:55 UTC (permalink / raw)
To: gcc-patches; +Cc: linux-mips
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2001-06-07 0:45 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-06-06 21:55 A patch for linux/mips libgcc H . J . Lu
2001-06-07 0:45 ` H . J . Lu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox