Author vstinner
Recipients koobs, mark.dickinson, vstinner
Date 2017-04-20.16:22:48
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1492705369.01.0.0936593812857.issue30104@psf.upfronthosting.co.za>
In-reply-to
Content
I created a test case: attached dtoa2.c.

Ok with GCC 6.3.1 (on Fedora 25) and clang 3.8 (on FreeBSD 11) with -O3:

haypo@selma$ gcc -O3 dtoa2.c -o x && ./x
text: 29865e170 -> float: 2.9865e+174
0x1.8265ea9f864bcp+579
{bc 64 f8 a9 5e 26 28 64}

[haypo@freebsd ~/prog/python/master]$ clang -O3 dtoa2.c -o x && ./x
text: 29865e170 -> float: 2.9865e+174
0x1.8265ea9f864bcp+579
{bc 64 f8 a9 5e 26 28 64}


Still ok with clang 3.8 with -O1:

[haypo@freebsd ~/prog/python/master]$ clang40 -O1 dtoa2.c -o x && ./x
text: 29865e170 -> float: 2.9865e+174
0x1.8265ea9f864bcp+579
{bc 64 f8 a9 5e 26 28 64}


Error with clang 4.0 using -O2 (on FreeBSD 11):

[haypo@freebsd ~/prog/python/master]$ clang40 -O2 dtoa2.c -o x && ./x
text: 29865e170 -> float: 2.9865e+174
0x1.8265ea9f864bdp+579    <~~~~~ HERE, bd instead of bc
{bd 64 f8 a9 5e 26 28 64} <~~~~~ HERE, bd instead of bc
History
Date User Action Args
2017-04-20 16:22:49vstinnersetrecipients: + vstinner, mark.dickinson, koobs
2017-04-20 16:22:49vstinnersetmessageid: <1492705369.01.0.0936593812857.issue30104@psf.upfronthosting.co.za>
2017-04-20 16:22:49vstinnerlinkissue30104 messages
2017-04-20 16:22:48vstinnercreate