This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Avoid broken powf on hppa*64*-*-hpux*


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]