diff options
author | Joel Brobecker <brobecker@adacore.com> | 2014-10-14 12:47:43 -0400 |
---|---|---|
committer | Joel Brobecker <brobecker@adacore.com> | 2014-10-16 14:52:17 -0700 |
commit | 5af04e20f6333dc224d1668dcd433d7c8ca84e71 (patch) | |
tree | c83b685982139aa3241972ddb308b7b925b42372 /libiberty/ChangeLog | |
parent | 89c7137fad41711072e2a15ce539e2ad293bd065 (diff) | |
download | gdb-5af04e20f6333dc224d1668dcd433d7c8ca84e71.zip gdb-5af04e20f6333dc224d1668dcd433d7c8ca84e71.tar.gz gdb-5af04e20f6333dc224d1668dcd433d7c8ca84e71.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.
Diffstat (limited to 'libiberty/ChangeLog')
-rw-r--r-- | libiberty/ChangeLog | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/libiberty/ChangeLog b/libiberty/ChangeLog index 829f684..9e91cce 100644 --- a/libiberty/ChangeLog +++ b/libiberty/ChangeLog @@ -1,3 +1,12 @@ +2014-10-16 Joel Brobecker <brobecker@adacore.com> + + * 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. + 2014-09-26 Jason Merrill <jason@redhat.com> * cp-demangle.c (d_substitution): Handle abi tags on abbreviation. |