From 406defcb58e60a2c7093700fbc27ae13a9b32d86 Mon Sep 17 00:00:00 2001
From: John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
Date: Tue, 19 Feb 2013 14:01:40 +0000
Subject: [PATCH] re PR target/56347 (FAIL:
 gfortran.dg/integer_exponentiation_2.f90  -O2  execution test)

	PR target/56347
	* acinclude.m4 (LIBGFOR_CHECK_FOR_BROKEN_POWF): Remove check for
	broken powf.
	* configure.ac (LIBGFOR_CHECK_FOR_BROKEN_POWF): Likewise.
	* intrinsics/c99_functions.c: Likewise.
	* configure: Rebuilt.
	* config.h.in: Rebuilt.

From-SVN: r196139
---
 libgfortran/ChangeLog                  | 10 ++++++++++
 libgfortran/acinclude.m4               | 12 ------------
 libgfortran/config.h.in                |  3 ---
 libgfortran/configure                  | 22 ----------------------
 libgfortran/configure.ac               |  3 ---
 libgfortran/intrinsics/c99_functions.c |  2 --
 6 files changed, 10 insertions(+), 42 deletions(-)

diff --git a/libgfortran/ChangeLog b/libgfortran/ChangeLog
index 1a42a8449a93..39606c8f13a6 100644
--- a/libgfortran/ChangeLog
+++ b/libgfortran/ChangeLog
@@ -1,3 +1,13 @@
+2013-02-19  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
+
+	PR target/56347
+	* acinclude.m4 (LIBGFOR_CHECK_FOR_BROKEN_POWF): Remove check for
+	broken powf.
+	* configure.ac (LIBGFOR_CHECK_FOR_BROKEN_POWF): Likewise.
+	* intrinsics/c99_functions.c: Likewise.
+	* configure: Rebuilt.
+	* config.h.in: Rebuilt.
+
 2013-02-06  Janus Weil  <janus@gcc.gnu.org>
 
 	PR fortran/55978
diff --git a/libgfortran/acinclude.m4 b/libgfortran/acinclude.m4
index d10126150eab..35698ec00f6e 100644
--- a/libgfortran/acinclude.m4
+++ b/libgfortran/acinclude.m4
@@ -257,18 +257,6 @@ __mingw_snprintf (NULL, 0, "%d\n", 1);
   fi
 ])
 
-dnl Check whether we have a broken powf implementation
-AC_DEFUN([LIBGFOR_CHECK_FOR_BROKEN_POWF], [
-  AC_CACHE_CHECK([whether powf is broken], libgfor_cv_have_broken_powf, [
-case "${target}" in
-  hppa*64*-*-hpux*) libgfor_cv_have_broken_powf=yes ;;
-  *) libgfor_cv_have_broken_powf=no;;
-esac])
-  if test x"$libgfor_cv_have_broken_powf" = xyes; then
-    AC_DEFINE(HAVE_BROKEN_POWF, 1, [Define if powf is broken.])
-  fi
-])
-
 dnl Check whether we have a __float128 type
 AC_DEFUN([LIBGFOR_CHECK_FLOAT128], [
   LIBQUADSPEC=
diff --git a/libgfortran/config.h.in b/libgfortran/config.h.in
index ee4c14f52c31..fb5026fc0da3 100644
--- a/libgfortran/config.h.in
+++ b/libgfortran/config.h.in
@@ -81,9 +81,6 @@
 /* Define to 1 if the target supports __attribute__((visibility(...))). */
 #undef HAVE_ATTRIBUTE_VISIBILITY
 
-/* Define if powf is broken. */
-#undef HAVE_BROKEN_POWF
-
 /* Define to 1 if you have the `cabs' function. */
 #undef HAVE_CABS
 
diff --git a/libgfortran/configure b/libgfortran/configure
index 5ad56aa29b75..8385e9684581 100755
--- a/libgfortran/configure
+++ b/libgfortran/configure
@@ -25592,28 +25592,6 @@ $as_echo "#define HAVE_MINGW_SNPRINTF 1" >>confdefs.h
   fi
 
 
-# Check for a broken powf implementation
-
-  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether powf is broken" >&5
-$as_echo_n "checking whether powf is broken... " >&6; }
-if test "${libgfor_cv_have_broken_powf+set}" = set; then :
-  $as_echo_n "(cached) " >&6
-else
-
-case "${target}" in
-  hppa*64*-*-hpux*) libgfor_cv_have_broken_powf=yes ;;
-  *) libgfor_cv_have_broken_powf=no;;
-esac
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_broken_powf" >&5
-$as_echo "$libgfor_cv_have_broken_powf" >&6; }
-  if test x"$libgfor_cv_have_broken_powf" = xyes; then
-
-$as_echo "#define HAVE_BROKEN_POWF 1" >>confdefs.h
-
-  fi
-
-
 # Check whether libquadmath should be used
 # Check whether --enable-libquadmath-support was given.
 if test "${enable_libquadmath_support+set}" = set; then :
diff --git a/libgfortran/configure.ac b/libgfortran/configure.ac
index 86cb330fee3f..7d97fed1b0bd 100644
--- a/libgfortran/configure.ac
+++ b/libgfortran/configure.ac
@@ -468,9 +468,6 @@ LIBGFOR_CHECK_WORKING_STAT
 # Check whether __mingw_snprintf() is present
 LIBGFOR_CHECK_MINGW_SNPRINTF
 
-# Check for a broken powf implementation
-LIBGFOR_CHECK_FOR_BROKEN_POWF
-
 # Check whether libquadmath should be used
 AC_ARG_ENABLE(libquadmath-support,
 AS_HELP_STRING([--disable-libquadmath-support],
diff --git a/libgfortran/intrinsics/c99_functions.c b/libgfortran/intrinsics/c99_functions.c
index f6acf2d1d0f8..ee74b115ea7e 100644
--- a/libgfortran/intrinsics/c99_functions.c
+++ b/libgfortran/intrinsics/c99_functions.c
@@ -518,10 +518,8 @@ 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);
 
 float
-- 
GitLab