From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id E733E384A03B; Thu, 16 Apr 2020 01:15:13 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E733E384A03B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1586999713; bh=Ux58OTclkQwVO12/pKLEM5K1otKN5/8O3HstusgtEwU=; h=From:To:Subject:Date:In-Reply-To:References:From; b=OV9iUwGhdEnxQnLJJhwpeL4tTzpYcDsnM0nWNXkjm4Dd7dXeMy4criom4i5NE5tRd 2LHtiXWNWDXyYFrG6VIXgF5Po/ygsnyLmjj2EvANZAmjU8XF3dkCou51/e6594E9Li /6rOs/3/CEIIqLW4W7H3Nm2z/xIeK2MShOx5jjao= From: "dave.anglin at bell dot net" To: gcc-bugs@gcc.gnu.org Subject: [Bug libfortran/94586] trigd_lib.inc:84:28: error: implicit declaration of function 'fmaf' Date: Thu, 16 Apr 2020 01:15:13 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libfortran X-Bugzilla-Version: 10.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: dave.anglin at bell dot net X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Apr 2020 01:15:14 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D94586 --- Comment #19 from dave.anglin at bell dot net --- On 2020-04-15 2:32 p.m., sgk at troutmask dot apl.washington.edu wrote: > On Wed, Apr 15, 2020 at 06:04:08PM +0000, dave.anglin at bell dot net wro= te: >> /usr/lib/dld.sl: Unresolved symbol: strtoflt128 (data)=C2=A0 from > This should be in libquadmath. > > % nm /usr/home/kargl/work/lib/libquadmath.a | grep strtoflt > strtoflt128.o: > 00000880 T strtoflt128 > This fixes the link issues but we are still left with cosl instead of cosq.= =C2=A0 HP-UX doesn't support weak very well. diff --git a/libgfortran/intrinsics/trigd.c b/libgfortran/intrinsics/trigd.c index 81699069545..ba92fbd0cb1 100644 --- a/libgfortran/intrinsics/trigd.c +++ b/libgfortran/intrinsics/trigd.c @@ -27,6 +27,10 @@ see the files COPYING3 and COPYING.RUNTIME respectively.= =C2=A0 If not, see =C2=A0#include +#if (_POSIX_VERSION < 200112L) +#define fmaf(a,b,c) ((a)*(b)+(c)) +#define fma(a,b,c) ((a)*(b)+(c)) +#endif =C2=A0/* =C2=A0=C2=A0=C2=A0 For real x, let {x}_P or x_P be the closest representibl= e number in the diff --git a/libgfortran/kinds-override.h b/libgfortran/kinds-override.h index baa0f7e1cb5..38e70be542a 100644 --- a/libgfortran/kinds-override.h +++ b/libgfortran/kinds-override.h @@ -34,7 +34,7 @@ see the files COPYING3 and COPYING.RUNTIME respectively.= =C2=A0 If not, see =C2=A0=C2=A0=C2=A0 GFC_REAL_16_IS_FLOAT128 macro that is used throughout li= bgfortran.=C2=A0 */ =C2=A0#if defined(HAVE_GFC_REAL_16) -# if defined(HAVE_GFC_REAL_10) +# if defined(HAVE_GFC_REAL_10) || defined(__hpux__) =C2=A0#=C2=A0 define GFC_REAL_16_IS_FLOAT128 =C2=A0#=C2=A0 if !defined(HAVE_FLOAT128) =C2=A0#=C2=A0=C2=A0 error "Where has __float128 gone?" diff --git a/libquadmath/quadmath_weak.h b/libquadmath/quadmath_weak.h index a97c813a013..2bbd2a11233 100644 --- a/libquadmath/quadmath_weak.h +++ b/libquadmath/quadmath_weak.h @@ -23,7 +23,7 @@ Boston, MA 02110-1301, USA.=C2=A0 */ =C2=A0#include "quadmath.h" -#if SUPPORTS_WEAK +#if SUPPORTS_WEAK && !defined(__hpux__) =C2=A0# define __qmath2(name,name2,type) \ =C2=A0=C2=A0 static __typeof(type) name __attribute__ ((__weakref__(#name2)= )) \ =C2=A0=C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 __quadmath_t= hrow;=