From owner-svn-src-head@FreeBSD.ORG Thu Jul 25 18:20:19 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 5E4B02F0; Thu, 25 Jul 2013 18:20:19 +0000 (UTC) (envelope-from tijl@coosemans.org) Received: from mailrelay009.isp.belgacom.be (mailrelay009.isp.belgacom.be [195.238.6.176]) by mx1.freebsd.org (Postfix) with ESMTP id 7999F282E; Thu, 25 Jul 2013 18:20:18 +0000 (UTC) X-Belgacom-Dynamic: yes X-Cloudmark-SP-Filtered: true X-Cloudmark-SP-Result: v=1.1 cv=YNYxFN+OaEw7Bvgx8BtAje2BdF1dMiUvAYP8MJfhIY0= c=1 sm=2 a=xnulW3ATU38A:10 a=ZxPGInapWdQA:10 a=6I5d2MoRAAAA:8 a=25FBXyFstQaOdyPHdHYA:9 a=CjuIK1q_8ugA:10 a=Ygar-FfzCk9i-NbEwFsA:9 a=0CaTwavtbm8A:10 a=_G8qimlXLBUA:10 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AmcGAONr8VFR8b7D/2dsb2JhbABbgwY1vjGBFhd0giQBAQVWIxALDgYECSUPKh4GiCcIuXmPbBEHhAADjECDUodMgSqFbIMNhyuDFjo Received: from 195.190-241-81.adsl-dyn.isp.belgacom.be (HELO kalimero.tijl.coosemans.org) ([81.241.190.195]) by relay.skynet.be with ESMTP; 25 Jul 2013 20:19:55 +0200 Received: from kalimero.tijl.coosemans.org (kalimero.tijl.coosemans.org [127.0.0.1]) by kalimero.tijl.coosemans.org (8.14.7/8.14.7) with ESMTP id r6PIJr2I005035; Thu, 25 Jul 2013 20:19:54 +0200 (CEST) (envelope-from tijl@coosemans.org) Date: Thu, 25 Jul 2013 20:19:48 +0200 From: Tijl Coosemans To: David Chisnall Subject: Re: svn commit: r253563 - head/contrib/libstdc++/include/c_std Message-ID: <20130725201948.2f5ae808@kalimero.tijl.coosemans.org> In-Reply-To: <201307231023.r6NANhGf065713@svn.freebsd.org> References: <201307231023.r6NANhGf065713@svn.freebsd.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=PGP-SHA256; boundary="Sig_/9brOvKNWdGkshkv=nffU6_R"; protocol="application/pgp-signature" 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: Thu, 25 Jul 2013 18:20:19 -0000 --Sig_/9brOvKNWdGkshkv=nffU6_R Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Tue, 23 Jul 2013 10:23:43 +0000 (UTC) David Chisnall wrote: > Author: theraven > Date: Tue Jul 23 10:23:43 2013 > New Revision: 253563 > URL: http://svnweb.freebsd.org/changeset/base/253563 >=20 > Log: > Add isnan() and isinf() to the global namespace in libstdc++'s . > =20 > The standard (n3242, section 17.6.1.1, paragraph 4) says that, because = these are > declared as macros in the C specification (even though they are > implemented as functions in the C++ library) they should be in the glob= al > namespace. > =20 > A surprising number of configure checks rely on this. It was broken by= recent > cleanups to math.h. >=20 > Modified: > head/contrib/libstdc++/include/c_std/std_cmath.h >=20 > Modified: head/contrib/libstdc++/include/c_std/std_cmath.h > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D > --- head/contrib/libstdc++/include/c_std/std_cmath.h Tue Jul 23 05:11:22 = 2013 (r253562) > +++ head/contrib/libstdc++/include/c_std/std_cmath.h Tue Jul 23 10:23:43 = 2013 (r253563) > @@ -589,6 +589,8 @@ _GLIBCXX_BEGIN_NAMESPACE(std) > { return ::__gnu_cxx::__capture_isunordered(__f1, __f2); } > =20 > _GLIBCXX_END_NAMESPACE > +using std::isnan; > +using std::isinf; > =20 > #endif /* _GLIBCXX_USE_C99_FP_MACROS_DYNAMIC */ > #endif Doesn't this violate C++98/C++03? The quote above is for C++11. I think the real issue here is that isnan/isinf functions were completely removed from math.h instead of just hidden for C++11 (with some #if). This also broke compilation of C code with -D_XOPEN_SOURCE=3D500. --Sig_/9brOvKNWdGkshkv=nffU6_R Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.20 (FreeBSD) iF4EAREIAAYFAlHxbEgACgkQfoCS2CCgtisfDgD/aw+jKaLh4dMzFZp5ytu1Wh0A 1Vq0Rex2lSH3uc6hAagA/RxtmddWxxg2v4gbXybZRd/w7uTS1C0hRlQ679+NF1V4 =OwSC -----END PGP SIGNATURE----- --Sig_/9brOvKNWdGkshkv=nffU6_R--