re PR bootstrap/26055 (libgcc-math declaration of __isinf conflicts with system heade...
authorRichard Guenther <rguenther@suse.de>
Tue, 28 Feb 2006 11:29:41 +0000 (11:29 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Tue, 28 Feb 2006 11:29:41 +0000 (11:29 +0000)
2006-02-28  Richard Guenther  <rguenther@suse.de>

PR bootstrap/26055
Revert
* configure.ac: Disable libgcc-math if we cannot mix
declaration of __isinf and math.h inclusion.
* configure: Re-generate.

* i386/Makefile.am: Use -std=c99, do not use -ffinite-math-only,
do not define __NO_MATH_INLINES.
* i386/Makefile.in: Re-generate.
* include/math_private.h (__atanf): Declare.
(__scalbnf): Likewise.
(__floorf): Likewise.
(__isinff): Likewise.
(__scalbn): Likewise.
(__floor): Likewise.
(fabs): Likewise.
(fabsf): Likewise.
* flt-32/e_acosf.c: Do not include math.h
* flt-32/s_isinff.c: Likewise.
* flt-32/k_tanf.c: Likewise.
* flt-32/e_sqrtf.c: Likewise.
* flt-32/e_asinf.c: Likewise.
* flt-32/k_cosf.c: Likewise.
* flt-32/k_sinf.c: Likewise.
* flt-32/s_floorf.c: Likewise.
* flt-32/s_tanf.c: Likewise.
* flt-32/s_atanf.c: Likewise.
* flt-32/s_cosf.c: Likewise.
* flt-32/e_atan2f.c: Likewise.
* flt-32/e_powf.c: Likewise.
* flt-32/s_sinf.c: Likewise.
* flt-32/e_rem_pio2f.c: Likewise.
* flt-32/s_scalbnf.c: Likewise.
* flt-32/e_logf.c: Likewise.
* flt-32/e_log10f.c: Likewise.
* flt-32/k_rem_pio2f.c: Likewise.
* flt-32/e_expf.c: Likewise.  Use __builtin_isless and
__builtin_isgreater.
* dbl-64/s_floor.c: Do not include math.h.
* dbl-64/e_log10.c: Likewise.
* dbl-64/k_rem_pio2.c: Likewise.
* dbl-64/s_atan.c: Likewise.
* dbl-64/s_scalbn.c: Likewise.
* dbl-64/s_isinf.c: Likewise.
* dbl-64/s_tan.c: Likewise.
* dbl-64/e_rem_pio2.c: Likewise.  Avoid uninitialized variable
warning.
* dbl-64/mpa.c: Likewise.

From-SVN: r111563

35 files changed:
libgcc-math/ChangeLog
libgcc-math/configure
libgcc-math/configure.ac
libgcc-math/dbl-64/e_log10.c
libgcc-math/dbl-64/e_rem_pio2.c
libgcc-math/dbl-64/k_rem_pio2.c
libgcc-math/dbl-64/mpa.c
libgcc-math/dbl-64/s_atan.c
libgcc-math/dbl-64/s_floor.c
libgcc-math/dbl-64/s_isinf.c
libgcc-math/dbl-64/s_scalbn.c
libgcc-math/dbl-64/s_tan.c
libgcc-math/flt-32/e_acosf.c
libgcc-math/flt-32/e_asinf.c
libgcc-math/flt-32/e_atan2f.c
libgcc-math/flt-32/e_expf.c
libgcc-math/flt-32/e_log10f.c
libgcc-math/flt-32/e_logf.c
libgcc-math/flt-32/e_powf.c
libgcc-math/flt-32/e_rem_pio2f.c
libgcc-math/flt-32/e_sqrtf.c
libgcc-math/flt-32/k_cosf.c
libgcc-math/flt-32/k_rem_pio2f.c
libgcc-math/flt-32/k_sinf.c
libgcc-math/flt-32/k_tanf.c
libgcc-math/flt-32/s_atanf.c
libgcc-math/flt-32/s_cosf.c
libgcc-math/flt-32/s_floorf.c
libgcc-math/flt-32/s_isinff.c
libgcc-math/flt-32/s_scalbnf.c
libgcc-math/flt-32/s_sinf.c
libgcc-math/flt-32/s_tanf.c
libgcc-math/i386/Makefile.am
libgcc-math/i386/Makefile.in
libgcc-math/include/math_private.h

index 8b93085fbec2c5a8c91e50274ba74f5ca7b2afe7..5f1c9839d7d40557e5e5e29122581e801a07e663 100644 (file)
@@ -1,3 +1,54 @@
+2006-02-28  Richard Guenther  <rguenther@suse.de>
+
+       PR bootstrap/26055
+       Revert
+       * configure.ac: Disable libgcc-math if we cannot mix
+       declaration of __isinf and math.h inclusion.
+       * configure: Re-generate.
+
+       * i386/Makefile.am: Use -std=c99, do not use -ffinite-math-only,
+       do not define __NO_MATH_INLINES.
+       * i386/Makefile.in: Re-generate.
+       * include/math_private.h (__atanf): Declare.
+       (__scalbnf): Likewise.
+       (__floorf): Likewise.
+       (__isinff): Likewise.
+       (__scalbn): Likewise.
+       (__floor): Likewise.
+       (fabs): Likewise.
+       (fabsf): Likewise.
+       * flt-32/e_acosf.c: Do not include math.h
+       * flt-32/s_isinff.c: Likewise.
+       * flt-32/k_tanf.c: Likewise.
+       * flt-32/e_sqrtf.c: Likewise.
+       * flt-32/e_asinf.c: Likewise.
+       * flt-32/k_cosf.c: Likewise.
+       * flt-32/k_sinf.c: Likewise.
+       * flt-32/s_floorf.c: Likewise.
+       * flt-32/s_tanf.c: Likewise.
+       * flt-32/s_atanf.c: Likewise.
+       * flt-32/s_cosf.c: Likewise.
+       * flt-32/e_atan2f.c: Likewise.
+       * flt-32/e_powf.c: Likewise.
+       * flt-32/s_sinf.c: Likewise.
+       * flt-32/e_rem_pio2f.c: Likewise.
+       * flt-32/s_scalbnf.c: Likewise.
+       * flt-32/e_logf.c: Likewise.
+       * flt-32/e_log10f.c: Likewise.
+       * flt-32/k_rem_pio2f.c: Likewise.
+       * flt-32/e_expf.c: Likewise.  Use __builtin_isless and
+       __builtin_isgreater.
+       * dbl-64/s_floor.c: Do not include math.h.
+       * dbl-64/e_log10.c: Likewise.
+       * dbl-64/k_rem_pio2.c: Likewise.
+       * dbl-64/s_atan.c: Likewise.
+       * dbl-64/s_scalbn.c: Likewise.
+       * dbl-64/s_isinf.c: Likewise.
+       * dbl-64/s_tan.c: Likewise.
+       * dbl-64/e_rem_pio2.c: Likewise.  Avoid uninitialized variable
+       warning.
+       * dbl-64/mpa.c: Likewise.
+
 2006-02-08  Richard Guenther  <rguenther@suse.de>
 
        * dbl-64/mpa.c: Do not include sys/param.h.
index 37adf05759c4613fe5ad9590044a204f4670b8a4..5a2b10cabfdf5b1c63998ca142daf595ac0ec60a 100755 (executable)
@@ -7661,73 +7661,6 @@ fi
 
 
 
-# Check for target library dependencies
-cannot_build=no
-
-echo "$as_me:$LINENO: checking whether math.h conflicts with defining __isinf" >&5
-echo $ECHO_N "checking whether math.h conflicts with defining __isinf... $ECHO_C" >&6
-cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h.  */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h.  */
-
-#include "math.h"
-int __isinf (double x)
-{
-}
-
-int
-main ()
-{
-
-return __isinf (1.0);
-
-  ;
-  return 0;
-}
-_ACEOF
-rm -f conftest.$ac_objext conftest$ac_exeext
-if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
-  (eval $ac_link) 2>conftest.er1
-  ac_status=$?
-  grep -v '^ *+' conftest.er1 >conftest.err
-  rm -f conftest.er1
-  cat conftest.err >&5
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
-  (exit $ac_status); } &&
-        { ac_try='test -z "$ac_c_werror_flag"
-                        || test ! -s conftest.err'
-  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
-  (eval $ac_try) 2>&5
-  ac_status=$?
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
-  (exit $ac_status); }; } &&
-        { ac_try='test -s conftest$ac_exeext'
-  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
-  (eval $ac_try) 2>&5
-  ac_status=$?
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
-  (exit $ac_status); }; }; then
-
-echo "$as_me:$LINENO: result: no" >&5
-echo "${ECHO_T}no" >&6
-
-else
-  echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-
-echo "$as_me:$LINENO: result: yes" >&5
-echo "${ECHO_T}yes" >&6
-cannot_build=yes
-
-fi
-rm -f conftest.err conftest.$ac_objext \
-      conftest$ac_exeext conftest.$ac_ext
-
-
 # Now check which parts we include in the library.
 
 arch_subdirs=
@@ -7745,9 +7678,6 @@ esac
 
 
 
-if test "$cannot_build" = "yes"; then
-  arch_subdirs=
-fi
 
 
 if test "x$arch_subdirs" != x; then
index 48ad73ad4bdbe92665663797b588c914985f504e..cdbb0512c87c3737ce3e524e9f8f2cee0b047224 100644 (file)
@@ -125,25 +125,6 @@ fi
 
 GCC_HEADER_STDINT(gstdint.h)
 
-# Check for target library dependencies
-cannot_build=no
-
-AC_MSG_CHECKING([whether math.h conflicts with defining __isinf])
-AC_TRY_LINK([
-#include "math.h"
-int __isinf (double x)
-{
-}
-], [
-return __isinf (1.0);
-], [
-AC_MSG_RESULT([no])
-], [
-AC_MSG_RESULT([yes])
-cannot_build=yes
-])
-
-
 # Now check which parts we include in the library.
 
 arch_subdirs=
@@ -161,9 +142,6 @@ esac
 AC_SUBST(arch_subdirs)
 AC_SUBST(arch_libraries)
 AC_SUBST(arch_maps)
-if test "$cannot_build" = "yes"; then
-  arch_subdirs=
-fi
 AM_CONDITIONAL(BUILD_LIBGCC_MATH, [test "x$arch_subdirs" != x])
 
 
index f158b9f4636800e8809d3f8c21d620b3fe094191..2be04b8756d4800198a30e741ccba0e1954425ab 100644 (file)
@@ -47,7 +47,6 @@ static char rcsid[] = "$NetBSD: e_log10.c,v 1.9 1995/05/10 20:45:51 jtc Exp $";
  * shown.
  */
 
-#include "math.h"
 #include "math_private.h"
 
 #ifdef __STDC__
index 671ee3eb2f6c8157f82a10eb38ba67f1897bd89e..7d4f7e19b5c1dd1282e941557698c5285731b86a 100644 (file)
@@ -20,7 +20,6 @@ static char rcsid[] = "$NetBSD: e_rem_pio2.c,v 1.8 1995/05/10 20:46:02 jtc Exp $
  * use __kernel_rem_pio2()
  */
 
-#include "math.h"
 #include "math_private.h"
 
 /*
@@ -90,7 +89,7 @@ pio2_3t =  8.47842766036889956997e-32; /* 0x397B839A, 0x252049C1 */
        double x,y[];
 #endif
 {
-       double z,w,t,r,fn;
+       double z=z,w,t,r,fn;
        double tx[3];
        int32_t e0,i,j,nx,n,ix,hx;
        uint32_t low;
index ccf1633bd4151c0cad41868fe2841affa2fde7a3..9ea767f591fccfa9a6fa3f70e83c46ee17a19d0a 100644 (file)
@@ -130,7 +130,6 @@ static char rcsid[] = "$NetBSD: k_rem_pio2.c,v 1.7 1995/05/10 20:46:25 jtc Exp $
  * to produce the hexadecimal values shown.
  */
 
-#include "math.h"
 #include "math_private.h"
 
 #ifdef __STDC__
index 85d9647a8d2d30f73485bcb59f4030971505b032..0fd87321445766672f0a26dfa3821163841c532a 100644 (file)
@@ -132,7 +132,7 @@ static void norm(const mp_no *x, double *y, int p)
 #if 0
   int k;
 #endif
-  double a,c,u,v,z[5];
+  double a,c=c,u,v,z[5];
   if (p<5) {
     if      (p==1) c = X[1];
     else if (p==2) c = X[1] + R* X[2];
index 556f5b216ddd4684059b5c149f819694941a87a1..439bccb29e465c0e182d41f60d31d3d996d18c87 100644 (file)
@@ -42,7 +42,6 @@
 #include "MathLib.h"
 #include "uatan.tbl"
 #include "atnat.h"
-#include "math.h"
 
 void __mpatan(mp_no *,mp_no *,int);          /* see definition in mpatan.c */
 static double atanMp(double,const int[]);
index 05c0233104cbc6894324b9c0da332387dee50a93..1fe135a7c3589344e0847b4d9aa25bff5e37f50e 100644 (file)
@@ -23,7 +23,6 @@ static char rcsid[] = "$NetBSD: s_floor.c,v 1.8 1995/05/10 20:47:20 jtc Exp $";
  *     Inexact flag raised if x not equal to floor(x).
  */
 
-#include "math.h"
 #include "math_private.h"
 
 #ifdef __STDC__
index 24b29ae0137594263d5ed6697e1f21a2af393905..4e84790401a4c01d854a6012139a2675f118e0fa 100644 (file)
@@ -13,7 +13,6 @@ static char rcsid[] = "$NetBSD: s_isinf.c,v 1.3 1995/05/11 23:20:14 jtc Exp $";
  * no branching!
  */
 
-#include "math.h"
 #include "math_private.h"
 
 int
index 336917c838bb1f466bdd03f074a81db524d7ef05..6ad68f9b9d6b4503f234a693a47b43f04cac7e9c 100644 (file)
@@ -21,7 +21,6 @@ static char rcsid[] = "$NetBSD: s_scalbn.c,v 1.8 1995/05/10 20:48:08 jtc Exp $";
  * exponentiation or a multiplication.
  */
 
-#include "math.h"
 #include "math_private.h"
 
 #ifdef __STDC__
index cf8d4d02670f8143b153bf54e5cc825dc2da53e5..17bac52da0319504ce0a445e32411bca581070b0 100644 (file)
@@ -37,7 +37,6 @@
 #include "dla.h"
 #include "mpa.h"
 #include "MathLib.h"
-#include "math.h"
 
 static double tanMp(double);
 void __mptan(double, mp_no *, int);
index 0d85c4210dc2d2be3b7599a8f5afd825d99ebdb4..ce28b844c18cf8bc51b73f433deb453017372a60 100644 (file)
@@ -17,7 +17,6 @@
 static char rcsid[] = "$NetBSD: e_acosf.c,v 1.5 1995/05/12 04:57:16 jtc Exp $";
 #endif
 
-#include "math.h"
 #include "math_private.h"
 
 #ifdef __STDC__
index b0c835c83c0b20c099918d07e1b83899aa876b6f..f563d374d55f51008aaff9a8cf8972c6a70d6e63 100644 (file)
@@ -39,7 +39,6 @@
 static char rcsid[] = "$NetBSD: e_asinf.c,v 1.5 1995/05/12 04:57:25 jtc Exp $";
 #endif
 
-#include "math.h"
 #include "math_private.h"
 
 #ifdef __STDC__
index a80d3a3f6861fb03b8b25f2f3d4c156fcdaf521d..d55fa0ded772b204d43e796bcb39f18749a725ae 100644 (file)
@@ -17,7 +17,6 @@
 static char rcsid[] = "$NetBSD: e_atan2f.c,v 1.4 1995/05/10 20:44:53 jtc Exp $";
 #endif
 
-#include "math.h"
 #include "math_private.h"
 
 #ifdef __STDC__
index 79749000d8b26f716303aafefdab71948402b8b5..feaac183af5b6424316807184a6c064ce51e6dc2 100644 (file)
@@ -52,7 +52,6 @@
 #endif
 #include <float.h>
 #include <ieee754.h>
-#include <math.h>
 #include <math_private.h>
 
 extern const float __exp_deltatable[178];
@@ -67,7 +66,7 @@ __ieee754_expf (float x)
   static const float himark = 88.72283935546875;
   static const float lomark = -103.972084045410;
   /* Check for usual case.  */
-  if (isless (x, himark) && isgreater (x, lomark))
+  if (__builtin_isless (x, himark) && __builtin_isgreater (x, lomark))
     {
       static const float THREEp42 = 13194139533312.0;
       static const float THREEp22 = 12582912.0;
@@ -115,7 +114,7 @@ __ieee754_expf (float x)
       return (float) result;
     }
   /* Exceptional cases:  */
-  else if (isless (x, himark))
+  else if (__builtin_isless (x, himark))
     {
       if (__isinff (x))
        /* e^-inf == 0, with no error.  */
index 4e09962a763c0c16b2d74f4b67edda52a92b8247..f444f951d815fba491d58b2191225daaef0555a4 100644 (file)
@@ -17,7 +17,6 @@
 static char rcsid[] = "$NetBSD: e_log10f.c,v 1.5 1995/05/10 20:45:53 jtc Exp $";
 #endif
 
-#include "math.h"
 #include "math_private.h"
 
 #ifdef __STDC__
index de8f869df49c59f96463e358968501820f7648b5..c5a1626525886c2c7355248cfa484ca09eb3a492 100644 (file)
@@ -17,7 +17,6 @@
 static char rcsid[] = "$NetBSD: e_logf.c,v 1.4 1995/05/10 20:45:54 jtc Exp $";
 #endif
 
-#include "math.h"
 #include "math_private.h"
 
 #ifdef __STDC__
index 5be75f2a79664dfd55cbbbf1023476a33649755e..cf2f2e57919f53c1665396797bce77120d0735ea 100644 (file)
@@ -17,7 +17,6 @@
 static char rcsid[] = "$NetBSD: e_powf.c,v 1.7 1996/04/08 15:43:44 phil Exp $";
 #endif
 
-#include "math.h"
 #include "math_private.h"
 
 static const float huge = 1.0e+30, tiny = 1.0e-30;
index 6c2dd3382eaaa53bc706b3bc0d8f423dfbaed761..4c845bccad7f4118523ce7e8e3516f0033525c0f 100644 (file)
@@ -23,7 +23,6 @@ static char rcsid[] = "$NetBSD: e_rem_pio2f.c,v 1.5 1995/05/10 20:46:03 jtc Exp
  * use __kernel_rem_pio2f()
  */
 
-#include "math.h"
 #include "math_private.h"
 
 /*
index 793f2ad4d18b22ac214e58f0aca72af11408b389..4a00998385ce0f54fe65b3b44918765901887297 100644 (file)
@@ -17,7 +17,6 @@
 static char rcsid[] = "$NetBSD: e_sqrtf.c,v 1.4 1995/05/10 20:46:19 jtc Exp $";
 #endif
 
-#include "math.h"
 #include "math_private.h"
 
 #ifdef __STDC__
index b232cab11f580200e2eb6b4d8503aa3a5d1c55d0..5f9f47c17bdb5782d0c1f859350abff8fe845678 100644 (file)
@@ -17,7 +17,6 @@
 static char rcsid[] = "$NetBSD: k_cosf.c,v 1.4 1995/05/10 20:46:23 jtc Exp $";
 #endif
 
-#include "math.h"
 #include "math_private.h"
 
 #ifdef __STDC__
index 2783480fcbff4a4596fe68c9e1e04d061a4afc78..b93f5d0759e36ce84f0612f08690291365f9ebea 100644 (file)
@@ -17,7 +17,6 @@
 static char rcsid[] = "$NetBSD: k_rem_pio2f.c,v 1.4 1995/05/10 20:46:28 jtc Exp $";
 #endif
 
-#include "math.h"
 #include "math_private.h"
 
 /* In the float version, the input parameter x contains 8 bit
index 4fec15e830ea7f5a2b5cd669b2d0059d403c85a0..21ce33433be3651e2f4d359a6ee702dd1880dd2a 100644 (file)
@@ -17,7 +17,6 @@
 static char rcsid[] = "$NetBSD: k_sinf.c,v 1.4 1995/05/10 20:46:33 jtc Exp $";
 #endif
 
-#include "math.h"
 #include "math_private.h"
 
 #ifdef __STDC__
index eb1a670939b9880b6e9efb5c696b32f278509175..10af8188e4f90d75926bcc598a747cbf812898d6 100644 (file)
@@ -17,7 +17,6 @@
 static char rcsid[] = "$NetBSD: k_tanf.c,v 1.4 1995/05/10 20:46:39 jtc Exp $";
 #endif
 
-#include "math.h"
 #include "math_private.h"
 #ifdef __STDC__
 static const float 
index a68933fa6adc40e33add68a4b8324d771c321aee..a4754130e2e8cafd956530701d5a976f335114d0 100644 (file)
@@ -17,7 +17,6 @@
 static char rcsid[] = "$NetBSD: s_atanf.c,v 1.4 1995/05/10 20:46:47 jtc Exp $";
 #endif
 
-#include "math.h"
 #include "math_private.h"
 
 #ifdef __STDC__
index 86c59d440ca98be4eae0c63855acd4c459cb85d4..1380844d96e977b8a1d37fc1468084b879b7828c 100644 (file)
@@ -17,7 +17,6 @@
 static char rcsid[] = "$NetBSD: s_cosf.c,v 1.4 1995/05/10 20:47:03 jtc Exp $";
 #endif
 
-#include "math.h"
 #include "math_private.h"
 
 #ifdef __STDC__
index b2c21cb05ab855b2b9292be868bb79dbd4d8392a..a38db688a7674446e84995f89b703e03fe5a36cd 100644 (file)
@@ -26,7 +26,6 @@ static char rcsid[] = "$NetBSD: s_floorf.c,v 1.4 1995/05/10 20:47:22 jtc Exp $";
  *     Inexact flag raised if x not equal to floorf(x).
  */
 
-#include "math.h"
 #include "math_private.h"
 
 #ifdef __STDC__
index 03a95fcc0fc22d5ab0dac4caa248edc1c352fb44..1296a0198c9f1f5a4e3706d7750db9d2fca1eb82 100644 (file)
@@ -12,7 +12,6 @@ static char rcsid[] = "$NetBSD: s_isinff.c,v 1.3 1995/05/11 23:20:21 jtc Exp $";
  * no branching!
  */
 
-#include "math.h"
 #include "math_private.h"
 
 int
index f9366bb5104c920a2139a8122e093134e99837d3..a3dd27cea6ebce485615e7bacfd8b529944ff11f 100644 (file)
@@ -17,7 +17,6 @@
 static char rcsid[] = "$NetBSD: s_scalbnf.c,v 1.4 1995/05/10 20:48:10 jtc Exp $";
 #endif
 
-#include "math.h"
 #include "math_private.h"
 
 #ifdef __STDC__
index 76a7c21fcb193fcabf00a47472aa8b03dd380101..c6ffd33249d8a21fc27b323be1c300327584548d 100644 (file)
@@ -17,7 +17,6 @@
 static char rcsid[] = "$NetBSD: s_sinf.c,v 1.4 1995/05/10 20:48:16 jtc Exp $";
 #endif
 
-#include "math.h"
 #include "math_private.h"
 
 #ifdef __STDC__
index e8f6016c32c4254e0725fcc704959ac5766bde27..8e66f18229024426f7ae928589321037819a3cbc 100644 (file)
@@ -17,7 +17,6 @@
 static char rcsid[] = "$NetBSD: s_tanf.c,v 1.4 1995/05/10 20:48:20 jtc Exp $";
 #endif
 
-#include "math.h"
 #include "math_private.h"
 
 #ifdef __STDC__
index 4a02e6a50b404a22ea80e4d2f0996800d4358fd4..b75705a374f4c275c25189f4e134df9a698a1808 100644 (file)
@@ -11,9 +11,9 @@ gcc_version := $(shell cat $(top_srcdir)/../gcc/BASE-VER)
 noinst_LTLIBRARIES = libsse2.la
 
 libsse2_la_CFLAGS = -I@srcdir@/../include -I.. -include @srcdir@/sse2.h \
-  -Wall -O2 -g -msse2 -msseregparm -mfpmath=sse -march=pentium3 \
-  -fno-math-errno -fno-trapping-math -ffinite-math-only \
-  -fno-rounding-math -fno-signaling-nans -D__NO_MATH_INLINES
+  -Wall -std=c99 -O2 -g \
+  -msse2 -msseregparm -mfpmath=sse -march=pentium3 -mtune=generic \
+  -fno-math-errno -fno-trapping-math -fno-rounding-math -fno-signaling-nans
 
 libsse2_la_SOURCES = \
   @srcdir@/../flt-32/e_acosf.c \
index 8e56ebfb5bceb481a46304fcfbad5650bf013d74..075bdbc71f038b9f49bc237df6633cb6dce7b4cf 100644 (file)
@@ -200,9 +200,9 @@ toolexeclibdir = @toolexeclibdir@
 gcc_version := $(shell cat $(top_srcdir)/../gcc/BASE-VER)
 noinst_LTLIBRARIES = libsse2.la
 libsse2_la_CFLAGS = -I@srcdir@/../include -I.. -include @srcdir@/sse2.h \
-  -Wall -O2 -g -msse2 -msseregparm -mfpmath=sse -march=pentium3 \
-  -fno-math-errno -fno-trapping-math -ffinite-math-only \
-  -fno-rounding-math -fno-signaling-nans -D__NO_MATH_INLINES
+  -Wall -std=c99 -O2 -g \
+  -msse2 -msseregparm -mfpmath=sse -march=pentium3 -mtune=generic \
+  -fno-math-errno -fno-trapping-math -fno-rounding-math -fno-signaling-nans
 
 libsse2_la_SOURCES = \
   @srcdir@/../flt-32/e_acosf.c \
index 25084f514050bb54981d57f4edf8c9c00f5b0807..4cfdabffd81c571c8d61abc1cfbf141d4ce06679 100644 (file)
@@ -232,6 +232,11 @@ extern float __kernel_cosf (float,float);
 extern float __kernel_tanf (float,float,int);
 extern int   __kernel_rem_pio2f (float*,float*,int,int,int, const int32_t*);
 
+extern float __atanf (float);
+extern float __scalbnf (float x, int n);
+extern float __floorf(float x);
+extern int __isinff(float x);
+
 /* internal functions.  */
 extern float __copysignf (float x, float __y);
 
@@ -318,5 +323,11 @@ extern double __mpcos1 (double __x);
 extern double __slowexp (double __x);
 extern double __slowpow (double __x, double __y, double __z);
 extern void __docos (double __x, double __dx, double __v[]);
+extern double __scalbn (double x, int n);
+extern double __floor(double x);
+
+/* Prototypes for C99 math functions provided by GCC builtins.  */
+extern double fabs(double);
+extern float fabsf(float);
 
 #endif /* _MATH_PRIVATE_H_ */