From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.anongoth.pl (mail.anongoth.pl [46.248.190.61]) by sourceware.org (Postfix) with ESMTPS id DF4BE3858C2C; Wed, 13 Apr 2022 14:56:18 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org DF4BE3858C2C Received: from anongoth.pl (unknown [192.168.1.15]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) (Authenticated sender: pkubaj@anongoth.pl) by mail.anongoth.pl (Postfix) with ESMTPSA id D832A195166; Wed, 13 Apr 2022 16:56:13 +0200 (CEST) Date: Wed, 13 Apr 2022 16:56:13 +0200 From: Piotr Kubaj To: FX Cc: gcc-patches@gcc.gnu.org, Fortran List , segher@kernel.crashing.org Subject: Re: [PATCH] fortran: use fpu-glibc on powerpc*-unknown-freebsd Message-ID: References: <2E9BFB96-6979-4DB5-8029-1F89C30B242B@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="K0jMIkPD1vzyuzzB" Content-Disposition: inline In-Reply-To: <2E9BFB96-6979-4DB5-8029-1F89C30B242B@gmail.com> X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: fortran@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Fortran mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Apr 2022 14:56:21 -0000 --K0jMIkPD1vzyuzzB Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 22-03-20 16:30:08, FX wrote: > Hi, >=20 > (Please send all Fortran (front-end and libgfortran) patches in CC to the= Fortran list.) >=20 > Please hold from pushing the patch as is, I have some questions: >=20 > - If FreeBSD has feenableexcept() and related functions, it should alread= y use the fpu-glibc code, because of this: >=20 > if test "x${have_feenableexcept}" =3D "xyes"; then > fpu_host=3D'fpu-glibc' > ieee_support=3D'yes' > fi >=20 > So before the patch, what was configure.host returning, and what is the v= alue of have_feenableexcept? >=20 > - Why restrict the patch to powerpc*? Don=E2=80=99t other FreeBSD targets= have that function? > - How does the patch affect the results of =E2=80=9Cmake check-gfortran= =E2=80=9D? >=20 >=20 > Thanks, > FX Hello, the problem is that configure checks for feenableexcept() in libm: AC_CHECK_LIB([m],[feenableexcept],[have_feenableexcept=3Dyes AC_DEFINE([HAV= E_FEENABLEEXCEPT],[1],[libm includes feenableexcept])]) FreeBSD doesn't have this function in libm, it's implemented in /usr/includ= e/fenv.h. --K0jMIkPD1vzyuzzB Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEycyIeNkkgohzsoorelmbhSCDnJ0FAmJW5I0ACgkQelmbhSCD nJ28Yw/+N4eCwgMUsoeQnFks7xuBh+MB5rNDal7B8fpuxzp3txRrtaSk75IvYY5K E+l+FBsj8ssCHRpIS9b85ANDE7jUDuqV5UIqjG6fSU8QO1oZzLYzvsV9SOQwkYyN of4R3KQHzXaT1+yBaZDK51Lt7JDO4AVdIBPslvfWolqZn1D/K+3ENGy+yaBGiB25 54Gi7zJ3TDSFmOcbxADPjOZ5Tt3+1UwbiZYHUD630VGiWkPCH+vPFkYgmfLRrHAt vRYmaLNhhNeF8yXun8G0M6s1sZlZ3ouzg+WWwO0tLzXXV1XqnVF8x5apBTMzVrUo cFvK61t+7eCMLpuIXpbhkyXHcbNHnX12yXwNqHQn7bVq/sB0X/T2/5EFwxdJrdna qXgB6MCT252Y3xcM+eitYpbMwcfd1OIIir2ecnngBsoGNZ9VEMTcaz4k9IyXd4Xd A4l3C6gEGv+MFlB0gCUKDzJrg7EhTfashFID1Uj/NqcxVYY0VQChpsj1ZzU1qrUA rZ2qCMpOT4S6UcRNH2509a60EmJCeh7DngG967TVOFlW8/rUN+WGQU1YysPyA9Th Rudf8i6T7mtHNCJTfU+HwEfs5iy/QBDgQtmCfK1+IjHMc4Zxngudalu7ydsSvQtV PkIkPZxf3sdYk589eDarKQmQIPpNgr9K13zm3x9GU1j9kQSjwss= =xAer -----END PGP SIGNATURE----- --K0jMIkPD1vzyuzzB--