aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-family/c-cppbuiltin.c
diff options
context:
space:
mode:
authorJoel Brobecker <brobecker@adacore.com>2014-10-14 17:57:08 +0000
committerJoel Brobecker <brobecke@gcc.gnu.org>2014-10-14 17:57:08 +0000
commit2a523cfe4e6304f18117266d34f4ae2603274577 (patch)
treefa07e611157bd534c668860de85bd30c4a8b2096 /gcc/c-family/c-cppbuiltin.c
parent957079189766793e0f6f82dfe74edc477f619bc2 (diff)
downloadgcc-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