diff mbox

Remove broken powf hack

Message ID 20130218174933.GA2580@hiauly1.hia.nrc.ca
State New
Headers show

Commit Message

John David Anglin Feb. 18, 2013, 5:49 p.m. UTC
This patch removes the broken powf hack.  This problem is now fixed in
the PA backend.

Tested on hppa2.0w-hp-hpux11.11 and hppa64-hp-hpux11.11.

OK for trunk?

Dave

Comments

Tobias Burnus Feb. 20, 2013, 11:59 a.m. UTC | #1
Am 18.02.2013 18:49, schrieb John David Anglin:
> This patch removes the broken powf hack.  This problem is now fixed in
> the PA backend.
> Tested on hppa2.0w-hp-hpux11.11 and hppa64-hp-hpux11.11.
> OK for trunk?

OK. Thanks for the patch and for fixing the problem more properly.*

Tobias

*http://gcc.gnu.org/ml/gcc-patches/2013-02/msg00852.html
diff mbox

Patch

Index: intrinsics/c99_functions.c
===================================================================
--- intrinsics/c99_functions.c	(revision 196123)
+++ intrinsics/c99_functions.c	(working copy)
@@ -518,10 +518,8 @@ 
 #endif
 
 
-#if !defined(HAVE_POWF) || defined(HAVE_BROKEN_POWF)
 #ifndef HAVE_POWF
 #define HAVE_POWF 1
-#endif
 float powf (float x, float y);
 
 float
Index: configure.ac
===================================================================
--- configure.ac	(revision 196123)
+++ configure.ac	(working copy)
@@ -468,9 +468,6 @@ 
 # 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],
Index: acinclude.m4
===================================================================
--- acinclude.m4	(revision 196123)
+++ acinclude.m4	(working copy)
@@ -257,18 +257,6 @@ 
   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=