* [PATCH] Remove broken powf hack
@ 2013-02-18 17:49 John David Anglin
2013-02-20 11:59 ` Tobias Burnus
0 siblings, 1 reply; 2+ messages in thread
From: John David Anglin @ 2013-02-18 17:49 UTC (permalink / raw)
To: gcc-patches; +Cc: fortran
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
--
J. David Anglin dave.anglin@nrc-cnrc.gc.ca
National Research Council of Canada (613) 990-0752 (FAX: 952-6602)
2013-02-18 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.
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=
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] Remove broken powf hack
2013-02-18 17:49 [PATCH] Remove broken powf hack John David Anglin
@ 2013-02-20 11:59 ` Tobias Burnus
0 siblings, 0 replies; 2+ messages in thread
From: Tobias Burnus @ 2013-02-20 11:59 UTC (permalink / raw)
To: John David Anglin; +Cc: John David Anglin, gcc-patches, fortran
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-02-20 11:59 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-02-18 17:49 [PATCH] Remove broken powf hack John David Anglin
2013-02-20 11:59 ` Tobias Burnus
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).