aboutsummaryrefslogtreecommitdiff
path: root/libgfortran/intrinsics
diff options
context:
space:
mode:
authorJohn David Anglin <dave.anglin@nrc-cnrc.gc.ca>2008-12-29 20:10:00 +0000
committerJohn David Anglin <danglin@gcc.gnu.org>2008-12-29 20:10:00 +0000
commitc0c3c409a78fa6a51d517ce63473ab1e84a4727d (patch)
tree6368f9b96a1136f25e6faa9fc46751b62fba3c73 /libgfortran/intrinsics
parent049dba029b93d39013b549cc51364434aa34211d (diff)
downloadgcc-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.c2
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)
{