[PATCH] strtoll and strtoull in libiberty (fix: libstdc++/5611)

Douglas Gregor gregod@cs.rpi.edu
Fri Mar 15 11:46:00 GMT 2002


The attached patch (against the mainline) is a revised version of the one 
posted in
  http://gcc.gnu.org/ml/libstdc++/2002-02/msg00169.html

It fixes libstdc++/5611 and should also fix the unresolved symbol problems on 
HP-UX reported here:
  http://gcc.gnu.org/ml/gcc-patches/2002-02/msg01491.html
  
Tested on i386-unknown-freebsd3.4 (which needs strtoll/strtoull from 
libiberty) and i686-pc-linux-gnu/glibc 2.2.4 (which doesn't need 
strtoll/strotoull from libiberty); bootstrap ok, no new regressions.

Changelog entries:
in libiberty:
  strtoll.c: New file
  strtoull.c: Likewise
  Makefile.in: Add strtoll and strtoull
  configure.in: Likewise

in libstdc++-v3:
  acconfig.h: Add _GLIBCPP_USE_LIBIBERTY_STRTOLL
  acinclude.m4: Determine if libiberty is needed based on strtoll/strotoull
  configure.in: Add GLIBCPP_NEED_LIBIBERTY
  config/locale/generic/c_locale.cc: Add prototypes for strtoll/strotoull 
when not supplied by native C library
  src/Makefile.am: Link with libiberty when required
  
	Doug Gregor
	gregod@cs.rpi.edu
-------------- next part --------------
A non-text attachment was scrubbed...
Name: strtoll.patch
Type: text/x-diff
Size: 12948 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20020315/76ba13b7/attachment.bin>


More information about the Libstdc++ mailing list