From owner-svn-src-head@FreeBSD.ORG Fri Jul 26 10:52:45 2013 Return-Path: Delivered-To: svn-src-head@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 7E80CAD0; Fri, 26 Jul 2013 10:52:45 +0000 (UTC) (envelope-from theraven@FreeBSD.org) Received: from theravensnest.org (theraven.freebsd.your.org [216.14.102.27]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 3040D2203; Fri, 26 Jul 2013 10:52:44 +0000 (UTC) Received: from [192.168.0.2] (cpc27-cmbg15-2-0-cust235.5-4.cable.virginmedia.com [86.27.188.236]) (authenticated bits=0) by theravensnest.org (8.14.5/8.14.5) with ESMTP id r6QAppjh047298 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Fri, 26 Jul 2013 10:51:54 GMT (envelope-from theraven@FreeBSD.org) Content-Type: multipart/signed; boundary="Apple-Mail=_307F7165-6576-4650-A30E-01E9F347DD08"; protocol="application/pgp-signature"; micalg=pgp-sha1 Mime-Version: 1.0 (Mac OS X Mail 6.5 \(1508\)) Subject: Re: svn commit: r253563 - head/contrib/libstdc++/include/c_std From: David Chisnall In-Reply-To: <20130726122654.19448832@kalimero.tijl.coosemans.org> Date: Fri, 26 Jul 2013 11:51:43 +0100 Message-Id: References: <201307231023.r6NANhGf065713@svn.freebsd.org> <20130725201948.2f5ae808@kalimero.tijl.coosemans.org> <7D9DA326-0F32-44D2-92F9-EED0751F9AE0@FreeBSD.org> <20130726122654.19448832@kalimero.tijl.coosemans.org> To: Tijl Coosemans X-Mailer: Apple Mail (2.1508) Cc: svn-src-head@FreeBSD.org, svn-src-all@FreeBSD.org, src-committers@FreeBSD.org X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Jul 2013 10:52:45 -0000 --Apple-Mail=_307F7165-6576-4650-A30E-01E9F347DD08 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii On 26 Jul 2013, at 11:26, Tijl Coosemans wrote: > On Fri, 26 Jul 2013 10:43:07 +0100 David Chisnall wrote: >> On 25 Jul 2013, at 19:19, Tijl Coosemans wrote: >>> This also >>> broke compilation of C code with -D_XOPEN_SOURCE=3D500. >>=20 >> Do you have a test case for this? >=20 > % cc -c test.c -D_XOPEN_SOURCE=3D500 -Wall -std=3Dgnu89 > test.c:5:10: warning: implicit declaration of function 'isnan' > [-Wimplicit-function-declaration] > return( isnan( d )); > ^ > 1 warning generated. >=20 > The isnan function is part of SUSv2: > http://pubs.opengroup.org/onlinepubs/7990989775/xsh/isnan.html >=20 > _XOPEN_SOURCE is handled in sys/cdefs.h. It sets the following macros: > #define __XSI_VISIBLE 500 > #define __POSIX_VISIBLE 199506 > #define __ISO_C_VISIBLE 1990 So, isnan and isinf should be visible in functions when in = __ISO_C_VISIBLE < 1999 and __XSI_VISIBLE < 600,=20 and __XSI_VISIBLE >=3D 500? David --Apple-Mail=_307F7165-6576-4650-A30E-01E9F347DD08 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.18 (Darwin) Comment: GPGTools - http://gpgtools.org iQIcBAEBAgAGBQJR8lTAAAoJEKx65DEEsqIdFyMQAJhOBfXumc2WG7MhHwFZZhAz 1Ue2dFCvFMQWhG+tI++XrL2B8GyN/Tk2HEbLbohxfMlOEzJmsxWFF92xnOQyZ5kF We2ACKUKRVtsB5SvmudZJWuqhahJSi++95D8D+Tballi08LSugpTSfgCsEV7TfqN AtKYLYd4Ao9F1xZBQ1Mcr0EcayKh40/2QkOSaKgXzWl6obaT40i4tie/EVgvGCJv VGGR1gNkZN1aXAsVJMNh1gIqKgL954Nq2z8pqAGmP+kvy1sdp6KgUIUnxN3hEC8B WjMJKgZijDgM7MXj+iVOhXS0XTtenHB51MxBr/l6GHpkd3Pnc+RwERDXdZHVQW3m 5KfYoYBnYPvnoT5uGTrYKMmboqBVeme4QZek5svEosOtiRnc6pks5KS6e4seXtCw 70oclQj92xxMqYNkiohyctpcpSIMaByn+/+91B8PLPsBzfVsjftopuuFnFNJXmyt 0SWnTnQqHWJN/XShTqSzGxKYiLlFosKKyhJBZESX0CwsfEgCCTHPBvClvv9I6HIB z8CEtJGT+CmR48X95GwgdkHnr7bRzp6uaKK6qhT2ggHviAk9JXGBNFQk5a6VI52w OFbotnMYj3UnqNvrZo9u3ERSQ+8+Ukiwrnmngjp72GEFYYsj02ZWT6AOfpZnmUO5 Hhj26Ipe1e8zX1ZwBWGx =Sh4z -----END PGP SIGNATURE----- --Apple-Mail=_307F7165-6576-4650-A30E-01E9F347DD08--