re PR bootstrap/26059 (fenv.h use in libgcc-math)
authorRichard Guenther <rguenther@suse.de>
Wed, 1 Feb 2006 10:32:22 +0000 (10:32 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Wed, 1 Feb 2006 10:32:22 +0000 (10:32 +0000)
2006-02-01  Richard Guenther  <rguenther@suse.de>

PR bootstrap/26059
* flt-32/e_expf.c: Remove fenv access.

From-SVN: r110470

libgcc-math/ChangeLog
libgcc-math/flt-32/e_expf.c

index f36e1cca94bc8988f9240cc1f8443610ac1d752b..b6544fdf112f904cbf6260f5357de90ff1416013 100644 (file)
@@ -1,3 +1,8 @@
+2006-02-01  Richard Guenther  <rguenther@suse.de>
+
+       PR bootstrap/26059
+       * flt-32/e_expf.c: Remove fenv access.
+
 2006-02-01  Richard Guenther  <rguenther@suse.de>
 
        PR bootstrap/26055
index b9cd53c0333dbb4d86f82152237c2a3287e20681..8ebe1ea8e60d7b351c838cecde992591e34142ef 100644 (file)
@@ -53,7 +53,6 @@
 #include <float.h>
 #include <ieee754.h>
 #include <math.h>
-#include <fenv.h>
 #include <inttypes.h>
 #include <math_private.h>
 
@@ -84,12 +83,6 @@ __ieee754_expf (float x)
       double x22, t, result, dx;
       float n, delta;
       union ieee754_double ex2_u;
-      fenv_t oldenv;
-
-      feholdexcept (&oldenv);
-#ifdef FE_TONEAREST
-      fesetround (FE_TONEAREST);
-#endif
 
       /* Calculate n.  */
       n = x * M_1_LN2 + THREEp22;
@@ -119,8 +112,6 @@ __ieee754_expf (float x)
       x22 = (0.5000000496709180453 * dx + 1.0000001192102037084) * dx + delta;
 
       /* Return result.  */
-      fesetenv (&oldenv);
-
       result = x22 * ex2_u.d + ex2_u.d;
       return (float) result;
     }