Switch to gdtoa.
This gives us a real strtold for LP64 and fixes various LP64
bugs.
Bug: 13563801
Change-Id: I277858d718ee746e136b6b6308a495ba50dfa488
diff --git a/libc/stdio/vfprintf.c b/libc/stdio/vfprintf.c
index e33c105..76ca659 100644
--- a/libc/stdio/vfprintf.c
+++ b/libc/stdio/vfprintf.c
@@ -146,7 +146,7 @@
#define DEFPREC 6
static char *cvt(double, int, int, char *, int *, int, int *);
-extern void freedtoa(char *);
+extern void __freedtoa(char *);
static int exponent(char *, int, int);
#else /* no FLOATING_POINT */
#define BUF 40
@@ -550,7 +550,7 @@
break;
}
- if (dtoaresult != NULL) freedtoa(dtoaresult);
+ if (dtoaresult != NULL) __freedtoa(dtoaresult);
flags |= FPT;
dtoaresult = cp = cvt(_double, prec, flags, &softsign,
&expt, ch, &ndig);
@@ -846,7 +846,7 @@
error:
#ifdef FLOATING_POINT
if (dtoaresult != NULL) {
- freedtoa(dtoaresult);
+ __freedtoa(dtoaresult);
}
#endif
if (argtable != NULL && argtable != statargtable) {