diff options
author | John David Anglin <dave.anglin@nrc-cnrc.gc.ca> | 2008-12-29 20:10:00 +0000 |
---|---|---|
committer | John David Anglin <danglin@gcc.gnu.org> | 2008-12-29 20:10:00 +0000 |
commit | c0c3c409a78fa6a51d517ce63473ab1e84a4727d (patch) | |
tree | 6368f9b96a1136f25e6faa9fc46751b62fba3c73 /libgfortran/intrinsics | |
parent | 049dba029b93d39013b549cc51364434aa34211d (diff) | |
download | gcc-c0c3c409a78fa6a51d517ce63473ab1e84a4727d.zip gcc-c0c3c409a78fa6a51d517ce63473ab1e84a4727d.tar.gz gcc-c0c3c409a78fa6a51d517ce63473ab1e84a4727d.tar.bz2 |
re PR fortran/31832 (FAIL: gfortran.dg/integer_exponentiation_2.f90 at -O1 and above)
PR fortran/31832
* acinclude.m4 (LIBGFOR_CHECK_FOR_BROKEN_POWF): New autoconf check for
broken powf.
* configure.ac (LIBGFOR_CHECK_FOR_BROKEN_POWF): Use it.
* intrinsics/c99_functions.c: Use internal powf implementation if
HAVE_BROKEN_POWF is defined.
* configure: Rebuilt.
* config.h.in: Rebuilt.
From-SVN: r142952
Diffstat (limited to 'libgfortran/intrinsics')
-rw-r--r-- | libgfortran/intrinsics/c99_functions.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libgfortran/intrinsics/c99_functions.c b/libgfortran/intrinsics/c99_functions.c index 13d5503..ce96c8c 100644 --- a/libgfortran/intrinsics/c99_functions.c +++ b/libgfortran/intrinsics/c99_functions.c @@ -491,8 +491,10 @@ nextafterf(float x, float y) #endif +#if !defined(HAVE_POWF) || defined(HAVE_BROKEN_POWF) #ifndef HAVE_POWF #define HAVE_POWF 1 +#endif float powf(float x, float y) { |