Message291984
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 |
|
Date |
User |
Action |
Args |
2017-04-20 16:22:49 | vstinner | set | recipients:
+ vstinner, mark.dickinson, koobs |
2017-04-20 16:22:49 | vstinner | set | messageid: <1492705369.01.0.0936593812857.issue30104@psf.upfronthosting.co.za> |
2017-04-20 16:22:49 | vstinner | link | issue30104 messages |
2017-04-20 16:22:48 | vstinner | create | |
|