[PATCH] Avoid broken powf on hppa*64*-*-hpux*
Mon Dec 29 17:34:00 GMT 2008
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:
+#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.
(650) 331-3385 x713
More information about the Gcc-patches