From owner-freebsd-current@FreeBSD.ORG Sat Jul 13 10:13:24 2013 Return-Path: Delivered-To: freebsd-current@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 8A36E2BA; Sat, 13 Jul 2013 10:13:24 +0000 (UTC) (envelope-from theraven@FreeBSD.org) Received: from theravensnest.org (theraven.freebsd.your.org [216.14.102.27]) by mx1.freebsd.org (Postfix) with ESMTP id 4E65E1988; Sat, 13 Jul 2013 10:13:23 +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 r6DAD3hL037645 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Sat, 13 Jul 2013 10:13:06 GMT (envelope-from theraven@FreeBSD.org) Content-Type: multipart/signed; boundary="Apple-Mail=_6B70CB09-FD89-4DA2-BEA2-1A534D35DC7A"; protocol="application/pgp-signature"; micalg=pgp-sha1 Mime-Version: 1.0 (Mac OS X Mail 6.3 \(1503\)) Subject: Re: CURRENT: CLANG 3.3 and -stad=c++11 and -stdlib=libc++: isnan()/isninf() oddity From: David Chisnall In-Reply-To: <20130712234749.5afa3c9b@thor.walstatt.dyndns.org> Date: Sat, 13 Jul 2013 11:12:59 +0100 Message-Id: <9B0A6D14-640E-4ADD-8E58-0B7867C7C674@FreeBSD.org> References: <20130710155809.0f589c22@thor.walstatt.dyndns.org> <20130710183315.725dfde0@thor.walstatt.dyndns.org> <20130710203200.5359fd18@thor.walstatt.dyndns.org> <51DDC04B.6040209@FreeBSD.org> <20957.49978.73666.392417@khavrinen.csail.mit.edu> <20130711130043.R920@besplex.bde.org> <20130711202908.L84170@besplex.bde.org> <20130712234749.5afa3c9b@thor.walstatt.dyndns.org> To: "O. Hartmann" X-Mailer: Apple Mail (2.1503) X-Mailman-Approved-At: Sat, 13 Jul 2013 11:55:18 +0000 Cc: Ed Schouten , Scot Hetzel , David Chisnall , "freebsd-toolchain@FreeBSD.org" , Garrett Wollman , FreeBSD Current , Bruce Evans , Tijl Coosemans , "freebsd-standards@FreeBSD.org" X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 13 Jul 2013 10:13:24 -0000 --Apple-Mail=_6B70CB09-FD89-4DA2-BEA2-1A534D35DC7A Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii On 12 Jul 2013, at 22:47, "O. Hartmann" = wrote: > Obviously not really fixed, but even worse: >=20 > if I use in C code (C99, using clang 3.3 on FreeBSD 10.0-CURRENT/amd64 > revision 253287) isnan(x) where x is a "const double", I receive now > the following error (which doesn't appear on previous versions): Thanks. This is now fixed, however the _Generic() usage that we had = there is also present in tgmath.h, and so this file will also need to be = fixed in the same way. I've now tested the macros with clang/c99, clang/c11, clang/c++98 and = clang/c++11, and gcc/c89 and they all seem to work for unqualified, = const, volatile, and const-volatile qualified types. I've added Ed to the cc: list, as he wrote this code in tgmath.h. David --Apple-Mail=_6B70CB09-FD89-4DA2-BEA2-1A534D35DC7A 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 iQIcBAEBAgAGBQJR4SgrAAoJEKx65DEEsqIdX+EQAMQpv3rkIYsk3U/45VwY9exf 4fjD7vuwWpsIeqtd9YL8Ru6bJ6dHsEk5P+6ffOHrzdzQfTyxDmU9jco9YcTPVkv8 OrMZ+Ld7ROuGQPX6QIPg63zGfRfREL+Lntabkbm0yGRZIr3Uf6EEham5DIMFp+OB MSqNq1AoMTc27zCACCimW3L6jbT3xrD6XLExR0hum4wAR2LAuflxodHESXmlo7n5 y+Oh+OuO/U60EkXoOoColAMEicLdvci+eoq35DbyReVO7DEf3o2eNd9PVmssVcZ+ 0RfC3KCzFqybbOyw3ZAbgoY+B9BDXgX3p75g4Qk9TKTTaAvwLHUFj0S+A0u8Rrb6 eNFw0ZGfLii/ao1RrWLnsHOiPKovf/uBRC3LDcpeOOJr8AyLOlpinBTaeGEnS4dS HnnJzHmKpOM0qJ6dSlwkQvA4AePRRzsTrm4viLuwsI8IionG+OPkNs7FuxORTW5I tKoFUwFKhzbU6p4XVuhEStowL4cqT4Ba9EbK07HWqMJ5xNBA0BPpTEKd4RVorXOm 54K0sIz3AB/TQk7I01iWmFOebaVMYorlBP6NMqvNWW9h35PRFyBrfxQVVYHmINrr F7hpH0oL5gJBCFVLUxhBlATJiM7FdbB0sHqXaFEqpdZjKUt9X8dysWJYHNXpoJOh GDnQq1VQEBMDqPjx9C53 =TyR3 -----END PGP SIGNATURE----- --Apple-Mail=_6B70CB09-FD89-4DA2-BEA2-1A534D35DC7A--