This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Avoid broken powf on hppa*64*-*-hpux*
- From: Mark Mitchell <mark at codesourcery dot com>
- To: John David Anglin <dave at hiauly1 dot hia dot nrc dot ca>
- Cc: gcc-patches at gcc dot gnu dot org, fortran at gcc dot gnu dot org, sje at cup dot hp dot com
- Date: Mon, 29 Dec 2008 09:22:04 -0800
- Subject: Re: [PATCH] Avoid broken powf on hppa*64*-*-hpux*
- References: <20081228162052.001594EE8@hiauly1.hia.nrc.ca>
John David Anglin wrote:
> The attached patch seems like the simplest way to fix the failure of
> gfortran.dg/integer_exponentiation_2.f90 at -O1 and above. As noted
> in the PR, the current powf implementation on 64-bit HP-UX is broken,
> clobbering register %fr12.
This patch is OK. However:
-#ifndef HAVE_POWF
+#if !defined(HAVE_POWF) || defined(HAVE_BROKEN_POWF)
#define HAVE_POWF 1
should probably conditionalize the setting of HAVE_POWF on
!defined(HAVE_POWF). Some preprocessors issues warnings about
redefining a macro.
OK with that change.
Thanks,
--
Mark Mitchell
CodeSourcery
mark@codesourcery.com
(650) 331-3385 x713