diff options
author | Richard Guenther <rguenther@suse.de> | 2006-02-01 10:32:22 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2006-02-01 10:32:22 +0000 |
commit | 168b93e9e32b3b6e95b7e3f149889298a051a935 (patch) | |
tree | f8c05c3d1083094f4d234aba7238fb615ce79618 | |
parent | 36cbd091c564540e008703e1abc1707194beb5b4 (diff) | |
download | gcc-168b93e9e32b3b6e95b7e3f149889298a051a935.zip gcc-168b93e9e32b3b6e95b7e3f149889298a051a935.tar.gz gcc-168b93e9e32b3b6e95b7e3f149889298a051a935.tar.bz2 |
re PR bootstrap/26059 (fenv.h use in libgcc-math)
2006-02-01 Richard Guenther <rguenther@suse.de>
PR bootstrap/26059
* flt-32/e_expf.c: Remove fenv access.
From-SVN: r110470
-rw-r--r-- | libgcc-math/ChangeLog | 5 | ||||
-rw-r--r-- | libgcc-math/flt-32/e_expf.c | 9 |
2 files changed, 5 insertions, 9 deletions
diff --git a/libgcc-math/ChangeLog b/libgcc-math/ChangeLog index f36e1cc..b6544fd 100644 --- a/libgcc-math/ChangeLog +++ b/libgcc-math/ChangeLog @@ -1,5 +1,10 @@ 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 * configure.ac: Disable libgcc-math if we cannot mix declaration of __isinf and math.h inclusion. diff --git a/libgcc-math/flt-32/e_expf.c b/libgcc-math/flt-32/e_expf.c index b9cd53c..8ebe1ea 100644 --- a/libgcc-math/flt-32/e_expf.c +++ b/libgcc-math/flt-32/e_expf.c @@ -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; } |