[PATCH] PR libstdc++/17850: Newlib doesn't provide strtold
Roger Sayle
roger@eyesopen.com
Thu Oct 7 03:16:00 GMT 2004
The following patch is my proposed solution to PR libstdc++/17850
which is a bug in libstdc++-v3's configure script that always defines
HAVE_STRTOLD on newlib targets, even though newlib does not (nor ever
has) provided an implementation of strtold. Unfortunately, this bug
was benignly latent until my recent patch to enable building libstdc++
on IRIX by checking _GLIBCXX_HAVE_STRTOLD, which exposed this problem
and breaks bootstrap on affected newlib targets on both mainline and
the gcc-3_4-branch. Doh! [I know, it's just not my week!]
The following "obvious" fix to libstdc++-v3/configure.ac simply
removes the line that defines HAVE_STRTOLD on newlib targets.
Ok for mainline and the gcc-3_4-branch?
My apologies for the current breakage.
2004-10-06 Roger Sayle <roger@eyesopen.com>
PR libstdc++/17850
* configure.ac: Newlib does not provide strtold.
* configure: Regenerate.
Index: configure.ac
===================================================================
RCS file: /cvs/gcc/gcc/libstdc++-v3/configure.ac,v
retrieving revision 1.26
diff -c -3 -p -r1.26 configure.ac
*** configure.ac 28 Sep 2004 08:58:28 -0000 1.26
--- configure.ac 7 Oct 2004 02:46:21 -0000
*************** else
*** 194,200 ****
# GLIBCXX_CHECK_STDLIB_SUPPORT
AC_DEFINE(HAVE_STRTOF)
- AC_DEFINE(HAVE_STRTOLD)
# AC_FUNC_MMAP
AC_DEFINE(HAVE_MMAP)
--- 194,199 ----
Roger
--
Roger Sayle, E-mail: roger@eyesopen.com
OpenEye Scientific Software, WWW: http://www.eyesopen.com/
Suite 1107, 3600 Cerrillos Road, Tel: (+1) 505-473-7385
Santa Fe, New Mexico, 87507. Fax: (+1) 505-473-0833
More information about the Libstdc++
mailing list