This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: US Software GOFAST fpcmp and dpcmp and NaNs


Another fallout of the GOFAST-compatible configuration of GCC is that
we emit calls to __unord[sd]f2 even though such a function is not
present in GOFAST, but we fail to emit it in libgcc.  Jim Wilson
agreed this patch was a good fix for this oversight, so I'm checking
it in.  Tested on the same port as the previous patch.

Index: gcc/ChangeLog
from  Alexandre Oliva  <aoliva@redhat.com>
	* config/fp-bit.c (_unord_f2): Compile it in even if
	US_SOFTWARE_GOFAST is enabled.

Index: gcc/config/fp-bit.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/config/fp-bit.c,v
retrieving revision 1.28
diff -u -p -r1.28 fp-bit.c
--- gcc/config/fp-bit.c 2001/12/12 06:59:23 1.28
+++ gcc/config/fp-bit.c 2002/03/08 02:58:55
@@ -1110,6 +1110,8 @@ _le_f2 (FLO_type arg_a, FLO_type arg_b)
 }
 #endif /* L_le_sf || L_le_df */
 
+#endif /* ! US_SOFTWARE_GOFAST */
+
 #if defined(L_unord_sf) || defined(L_unord_df)
 CMPtype
 _unord_f2 (FLO_type arg_a, FLO_type arg_b)
@@ -1127,8 +1129,6 @@ _unord_f2 (FLO_type arg_a, FLO_type arg_
   return (isnan (&a) || isnan (&b));
 }
 #endif /* L_unord_sf || L_unord_df */
-
-#endif /* ! US_SOFTWARE_GOFAST */
 
 #if defined(L_si_to_sf) || defined(L_si_to_df)
 FLO_type

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist                Professional serial bug killer

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]