diff options
author | Joel Brobecker <brobecker@adacore.com> | 2014-10-14 17:57:08 +0000 |
---|---|---|
committer | Joel Brobecker <brobecke@gcc.gnu.org> | 2014-10-14 17:57:08 +0000 |
commit | 2a523cfe4e6304f18117266d34f4ae2603274577 (patch) | |
tree | fa07e611157bd534c668860de85bd30c4a8b2096 /gcc/c-family/c-cppbuiltin.c | |
parent | 957079189766793e0f6f82dfe74edc477f619bc2 (diff) | |
download | gcc-2a523cfe4e6304f18117266d34f4ae2603274577.zip gcc-2a523cfe4e6304f18117266d34f4ae2603274577.tar.gz gcc-2a523cfe4e6304f18117266d34f4ae2603274577.tar.bz2 |
Use strtod instead of strtold in libiberty/d-demangle.c
strtold is currently used to decode templates which have a floating-point
value encoded inside; but this routine is not available on some systems,
such as Solaris 2.9 for instance.
This patch fixes the issue by replace the use of strtold by strtod.
It reduces a bit the precision, but it should still remain acceptable
in most cases.
libiberty/ChangeLog:
* d-demangle.c: Replace strtold with strtod in global comment.
(strtold): Remove declaration.
(strtod): New declaration.
(dlang_parse_real): Declare value as double instead of long
double. Replace call to strtold by call to strtod.
Update format in call to snprintf.
From-SVN: r216216
Diffstat (limited to 'gcc/c-family/c-cppbuiltin.c')
0 files changed, 0 insertions, 0 deletions