arm--netbsd floating point config change.

Krister Walfridsson cato@df.lth.se
Wed May 1 15:00:00 GMT 2002


Some testsuite tests fail for arm--netbsd because __unorddf2 is not found
during linking. The patch below adds it to libgcc.a in the same way as
is already done for the rest of the arm targets.

Bootstrapped and checked on arm-unknown-netbsd1.5Y.

   /Krister


2002-05-01  Krister Walfridsson  <cato@df.lth.se>

	* config/arm/t-netbsd (FPBIT): New.  Added so that __unorddf2 is
	included in libgcc.a.
	(DPBIT): Likewise.
	(dp-bit.c): Likewise.
	(fp-bit.c): Likewise.


Index: gcc/gcc/config/arm/t-netbsd
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/arm/t-netbsd,v
retrieving revision 1.5
diff -c -3 -p -r1.5 t-netbsd
*** gcc/gcc/config/arm/t-netbsd	13 Dec 2001 14:24:03 -0000	1.5
--- gcc/gcc/config/arm/t-netbsd	1 May 2002 21:44:38 -0000
***************
*** 1,3 ****
--- 1,22 ----
+ # 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
+
+ fp-bit.c: $(srcdir)/config/fp-bit.c
+ 	echo '#define FLOAT' > fp-bit.c
+ 	echo '#ifndef __ARMEB__' >> fp-bit.c
+ 	echo '#define FLOAT_BIT_ORDER_MISMATCH' >> fp-bit.c
+ 	echo '#endif' >> fp-bit.c
+ 	cat $(srcdir)/config/fp-bit.c >> fp-bit.c
+
+ dp-bit.c: $(srcdir)/config/fp-bit.c
+ 	echo '#ifndef __ARMEB__' > dp-bit.c
+ 	echo '#define FLOAT_BIT_ORDER_MISMATCH' >> dp-bit.c
+ 	echo '#define FLOAT_WORD_ORDER_MISMATCH' >> dp-bit.c
+ 	echo '#endif' >> dp-bit.c
+ 	cat $(srcdir)/config/fp-bit.c >> dp-bit.c
+
  # Just for these, we omit the frame pointer since it makes such a big
  # difference.  It is then pointless adding debugging.
  TARGET_LIBGCC2_CFLAGS = -fomit-frame-pointer -fpic



More information about the Gcc-patches mailing list