Date: Sat, 15 Sep 2012 15:48:38 +0200 From: Tijl Coosemans <tijl@coosemans.org> To: Roman Divacky <rdivacky@freebsd.org> Cc: Ian Lepore <freebsd@damnhippie.dyndns.org>, current@freebsd.org, Dimitry Andric <dim@freebsd.org>, toolchain@freebsd.org, Steve Kargl <sgk@troutmask.apl.washington.edu> Subject: Re: Clang as default compiler November 4th Message-ID: <50548736.9030203@coosemans.org> In-Reply-To: <20120915124809.GA10939@freebsd.org> References: <504F4645.4070900@FreeBSD.org> <504F4A6B.4010001@coosemans.org> <504F5101.8090906@FreeBSD.org> <505101C3.70203@freebsd.org> <20120913020833.GA8255@troutmask.apl.washington.edu> <1347550332.1110.108.camel@revolution.hippie.lan> <20120913161024.GA13846@troutmask.apl.washington.edu> <20120914202319.GB5244@lor.one-eyed-alien.net> <20120915001808.GA70215@troutmask.apl.washington.edu> <20120915010600.GA70426@troutmask.apl.washington.edu> <20120915124809.GA10939@freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig7358AAEF3499B2D91F7D4E3F Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 15-09-2012 14:48, Roman Divacky wrote: > Fwiw, this seems to have been fixed as of a few minutes ago. >=20 > http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20120910/15= 0720.html >=20 > Steve, can you please test llvm/clang from (their) svn and report > back? We can import a newer snapshot if all is ok. Here's a small test program. You're probably better equipped to test clang svn. -------- #include <math.h> #include <stdio.h> #include <stdlib.h> int main( int argc, char **argv ) { double d =3D strtod( argv[ 1 ], NULL ); printf( "%e\n", ( double ) cos( d )); printf( "%e\n", ( double ) cosf( d )); printf( "%e\n", ( double ) cosl( d )); return( 0 ); } -------- This is the current output of clang: % clang -o cos cos.c -lm % ./cos 1.23456789e20 6.031937e-01 1.234568e+20 2.814722e-01 The second number (cosf) is wrong. It should be a value between -1 and 1.= --------------enig7358AAEF3499B2D91F7D4E3F Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (FreeBSD) iF4EAREIAAYFAlBUhzsACgkQfoCS2CCgtivziAD+NWYBAPtGISfvBeetsdttpHSn Vx3/+VhU8x4d3Oc+NwYA/2Vr1H6IqZYc0rvSb38RwWw1luuHAv2xxuwSCO433hnN =rTcS -----END PGP SIGNATURE----- --------------enig7358AAEF3499B2D91F7D4E3F--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?50548736.9030203>