Date: Sat, 13 Jul 2013 11:12:59 +0100 From: David Chisnall <theraven@FreeBSD.org> To: "O. Hartmann" <ohartman@zedat.fu-berlin.de> Cc: Ed Schouten <ed@80386.nl>, Scot Hetzel <swhetzel@gmail.com>, David Chisnall <theraven@FreeBSD.org>, "freebsd-toolchain@FreeBSD.org" <freebsd-toolchain@FreeBSD.org>, Garrett Wollman <wollman@csail.mit.edu>, FreeBSD Current <freebsd-current@FreeBSD.org>, Bruce Evans <brde@optusnet.com.au>, Tijl Coosemans <tijl@FreeBSD.org>, "freebsd-standards@FreeBSD.org" <freebsd-standards@FreeBSD.org> Subject: Re: CURRENT: CLANG 3.3 and -stad=c++11 and -stdlib=libc++: isnan()/isninf() oddity Message-ID: <9B0A6D14-640E-4ADD-8E58-0B7867C7C674@FreeBSD.org> In-Reply-To: <20130712234749.5afa3c9b@thor.walstatt.dyndns.org> References: <20130710155809.0f589c22@thor.walstatt.dyndns.org> <CD51F125-AE9E-4461-916D-CF583002B47D@FreeBSD.org> <20130710183315.725dfde0@thor.walstatt.dyndns.org> <C8C94CF2-7D5A-471B-AD63-8E961AED6274@FreeBSD.org> <20130710203200.5359fd18@thor.walstatt.dyndns.org> <51DDC04B.6040209@FreeBSD.org> <20957.49978.73666.392417@khavrinen.csail.mit.edu> <20130711130043.R920@besplex.bde.org> <FD768A6B-8B72-44A1-BC1C-14FF44CB4643@FreeBSD.org> <20130711202908.L84170@besplex.bde.org> <C00DFA94-6182-4334-9C90-8012E576E475@FreeBSD.org> <CACdU%2Bf9RmwxSiMEjOwSXHtnDwKk4xY8fmA3aBE5mzrVUkrc1Nw@mail.gmail.com> <CACdU%2Bf-LKsHsPayUYAT-cip91O=CfQg2aJ1BKC5PRd6G9Kf28w@mail.gmail.com> <20130712234749.5afa3c9b@thor.walstatt.dyndns.org>
next in thread | previous in thread | raw e-mail | index | archive | help
--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" <ohartman@zedat.fu-berlin.de> = 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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9B0A6D14-640E-4ADD-8E58-0B7867C7C674>