openbsd-ports/lang/gcc/3.3/patches/patch-gcc_config_mips_t-openbsd64
2005-01-03 15:21:26 +00:00

19 lines
615 B
Plaintext

$OpenBSD: patch-gcc_config_mips_t-openbsd64,v 1.1.1.1 2005/01/03 15:21:26 espie Exp $
--- gcc/config/mips/t-openbsd64.orig Mon Jan 3 10:17:43 2005
+++ gcc/config/mips/t-openbsd64 Mon Jan 3 10:17:43 2005
@@ -0,0 +1,14 @@
+
+LIB2FUNCS_EXTRA = $(srcdir)/config/mips/_tilib.c
+
+TPBIT = tp-bit.c
+
+tp-bit.c: $(srcdir)/config/fp-bit.c
+ echo '#ifdef __MIPSEL__' > tp-bit.c
+ echo '# define FLOAT_BIT_ORDER_MISMATCH' >> tp-bit.c
+ echo '#endif' >> tp-bit.c
+ echo '#if __LDBL_MANT_DIG__ == 113' >> tp-bit.c
+ echo '# define TFLOAT' >> tp-bit.c
+ cat $(srcdir)/config/fp-bit.c >> tp-bit.c
+ echo '#endif' >> tp-bit.c
+