aboutsummaryrefslogtreecommitdiff
path: root/libquadmath
diff options
context:
space:
mode:
authorTobias Burnus <burnus@net-b.de>2010-12-08 23:35:52 +0100
committerTobias Burnus <burnus@gcc.gnu.org>2010-12-08 23:35:52 +0100
commit09c2d63aa4ea2fb3e90055ca521940df9f8fcb56 (patch)
tree9d974046f38ebbea8d09e3ffc79bc2cd83beca81 /libquadmath
parentfeb6efc1f4ada2d63c48270d6a303d8823c7845d (diff)
downloadgcc-09c2d63aa4ea2fb3e90055ca521940df9f8fcb56.zip
gcc-09c2d63aa4ea2fb3e90055ca521940df9f8fcb56.tar.gz
gcc-09c2d63aa4ea2fb3e90055ca521940df9f8fcb56.tar.bz2
re PR fortran/46772 (libquadmath: Build failure - strtod: static declaration of 'strtod' follows non-static declaration)
2010-12-08 Tobias Burnus <burnus@net-b.de> PR fortran/46772 * gdtoa/gdtoa.h: Include stdlib.h instead of declare strtod. * gdtoa/gdtoaimp.h: Don't declare strtod. From-SVN: r167608
Diffstat (limited to 'libquadmath')
-rw-r--r--libquadmath/ChangeLog6
-rw-r--r--libquadmath/gdtoa/gdtoa.h3
-rw-r--r--libquadmath/gdtoa/gdtoaimp.h1
3 files changed, 7 insertions, 3 deletions
diff --git a/libquadmath/ChangeLog b/libquadmath/ChangeLog
index 7cf5219..8e17d2d 100644
--- a/libquadmath/ChangeLog
+++ b/libquadmath/ChangeLog
@@ -1,5 +1,11 @@
2010-12-08 Tobias Burnus <burnus@net-b.de>
+ PR fortran/46772
+ * gdtoa/gdtoa.h: Include stdlib.h instead of declare strtod.
+ * gdtoa/gdtoaimp.h: Don't declare strtod.
+
+2010-12-08 Tobias Burnus <burnus@net-b.de>
+
PR fortran/46520
* configure.ac: Use GCC_TRY_COMPILE_OR_LINK instead of
AC_TRY_LINK and cache libquad_have_float128.
diff --git a/libquadmath/gdtoa/gdtoa.h b/libquadmath/gdtoa/gdtoa.h
index 1a60b6c..de10a43 100644
--- a/libquadmath/gdtoa/gdtoa.h
+++ b/libquadmath/gdtoa/gdtoa.h
@@ -34,6 +34,7 @@ THIS SOFTWARE.
#include "arith.h"
#include <stddef.h> /* for size_t */
+#include <stdlib.h> /* for strtod */
#ifndef Long
#define Long long
@@ -108,8 +109,6 @@ extern char* dtoa ANSI((double d, int mode, int ndigits, int *decpt,
extern char* gdtoa ANSI((FPI *fpi, int be, ULong *bits, int *kindp,
int mode, int ndigits, int *decpt, char **rve));
extern void freedtoa ANSI((char*));
-extern float strtof ANSI((CONST char *, char **));
-extern double strtod ANSI((CONST char *, char **));
extern int strtodg ANSI((CONST char*, char**, FPI*, Long*, ULong*));
extern char* g_ddfmt ANSI((char*, double*, int, size_t));
diff --git a/libquadmath/gdtoa/gdtoaimp.h b/libquadmath/gdtoa/gdtoaimp.h
index 2c188d6..6843808 100644
--- a/libquadmath/gdtoa/gdtoaimp.h
+++ b/libquadmath/gdtoa/gdtoaimp.h
@@ -561,7 +561,6 @@ extern void memcpy_D2A ANSI((void*, const void*, size_t));
extern Bigint *set_ones ANSI((Bigint*, int));
extern char *strcp ANSI((char*, const char*));
extern int strtoIg ANSI((CONST char*, char**, FPI*, Long*, Bigint**, int*));
- extern double strtod ANSI((const char *s00, char **se));
extern Bigint *sum ANSI((Bigint*, Bigint*));
extern int trailz ANSI((Bigint*));
extern double ulp ANSI((U*));