Iris6 Floating Point Config File Change

Jeffrey Oldham oldham@codesourcery.com
Tue Nov 7 16:41:00 GMT 2000


The gcc/testsuite/gcc.c-torture/execute/ieee/fp-cmp-4.c test case was
failing to link because __unorddf2 was not defined.  This function
returns true if either operand is NaN.  This configuration file change
ensures that __unorddf2 is added to libgcc.a so the linking succeeds.

2000-11-07  Jeffrey Oldham  <oldham@oz.codesourcery.com>

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

Approved by Mark Mitchell.  Bootstrapped on Irix6.5.  The Irix6.5
testsuite results are unchanged except that fp-cmp-4.c cases succeed.

Thanks,
Jeffrey D. Oldham
oldham@codesourcery.com
Index: t-iris6
===================================================================
RCS file: /cvs/gcc/egcs/gcc/config/mips/t-iris6,v
retrieving revision 1.5
diff -c -p -r1.5 t-iris6
*** t-iris6	2000/10/08 23:20:18	1.5
--- t-iris6	2000/11/08 00:05:52
*************** SHLIB_LINK = $(GCC_FOR_TARGET) $(LIBGCC2
*** 30,32 ****
--- 30,47 ----
  # -Wl,-exports_file,@shlib_map_file@
  SHLIB_MKMAP = $(srcdir)/mkmap-flat.awk
  SHLIB_MAPFILES = $(srcdir)/libgcc-std.ver 
+ 
+ # 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 '#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 '#define FLOAT' > fp-bit.c
+ 	echo '#undef US_SOFTWARE_GOFAST' >> fp-bit.c
+ 	cat $(srcdir)/config/fp-bit.c >> fp-bit.c


More information about the Gcc-patches mailing list