Add strtoll and strtoull to libiberty

Programming / Compilers / GCC - ygribov [138bc75d-0d04-0410-961f-82ee72b054a4] - 28 October 2014 04:43 UTC

2014-10-28 Yury Gribov

include/
- libiberty.h (strtol, strtoul, strtoll, strtoull): New prototypes.

libiberty/
- strtoll.c: New file.
- strtoull.c: New file.
- configure.ac: Add long long checks. Add harness for strtoll and strtoull. Check decls for strtol, strtoul, strtoll, strtoull.
- Makefile.in (CFILES, CONFIGURED_OFILES): Add strtoll and strtoull.
- config.in: Regenerate.
- configure: Regenerate.
- functions.texi: Regenerate.
- testsuite/Makefile.in (check-strtol): New rule. (test-strtol): Likewise. (mostlyclean): Clean up strtol test.
- testsuite/test-strtol.c: New test.

5e1a5ab Add strtoll and strtoull to libiberty.
include/ChangeLog | 4 +
include/libiberty.h | 27 ++++++
libiberty/ChangeLog | 15 +++
libiberty/Makefile.in | 46 +++++++---
libiberty/config.in | 31 +++++++
libiberty/configure | 122 +++++++++++++++++++++++-
libiberty/configure.ac | 14 ++-
libiberty/functions.texi | 18 ++++
libiberty/strtoll.c | 175 +++++++++++++++++++++++++++++++++++
libiberty/strtoull.c | 122 ++++++++++++++++++++++++
libiberty/testsuite/Makefile.in | 12 ++-
libiberty/testsuite/test-strtol.c | 184 +++++++++++++++++++++++++++++++++++++
12 files changed, 752 insertions(+), 18 deletions(-)

Upstream: gcc.gnu.org


  • Share