C99 bfd configury
authorAlan Modra <amodra@gmail.com>
Mon, 5 Apr 2021 05:57:37 +0000 (15:27 +0930)
committerAlan Modra <amodra@gmail.com>
Mon, 5 Apr 2021 05:57:37 +0000 (15:27 +0930)
commit83c79df86bf40666d1da7cd884bc10d45773df91
tree1958fb387f15984aea41c900c959bb88c5dfb71a
parent5d4d26d14ca3dcf4c2d0745df720a2a5bd1bd6a5
C99 bfd configury

Certain library headers and functions are required by C99.  This
removes configure tests for them.  The patch also removes AC_ISC_POSIX
and AC_HEADER_DIRENT, which the autoconf manual states are obsolescent.
sys/time.h is no longer tangled up with time.h so it can be handled by
the gprof configure.

* configure.ac: Don't check for long long or long double type.
Don't check for alloca.h, limits.h, stddef.h, stdlib.h, string.h,
strings.h, time.h, wchar.h, wctype.h or sys/time.h.  Don't check
for strtoull, free, malloc, realloc, getenv, strstr, snprintf,
vsnprintf, strlen or setitimer.  Sort AC_CHECK_DECLS.
(AC_ISC_POSIX): Don't invoke.
(AC_HEADER_TIME, AC_HEADER_DIRENT, ACX_HEADER_STRING): Likewise.
* sysdep.h: Remove many HAVE_*_H checks and fallback declarations.
Do test HAVE_SYS_TYPES_H.  Don't include sys/time.h.  Reorder
header order as per automake AC_INCLUDES_DEFAULT.
* bfd-in.h: Include inttypes.h unconditionally.
* bfd.c (_bfd_doprnt, _bfd_doprnt_scan): Assume long long and
long double are available.
(bfd_scan_vma): Assume long long and strtoull are available.
* elflink.c: Include limits.h unconditionally.
* elfnn-riscv.c: Likewise.
* wasm-module.c: Likewise.
* hpux-core.c: Include dirent.h unconditionally.
* trad-core.c: Likewise.
* hosts/x86-64linux.h: Include stdlib.h unconditionally.
* peXXigen.c: Remove HAVE_WCHAR_H and HAVE_WCTYPE_H checks.
* elf32-m68hc1x.c: Don't include alloca-conf.h.
* elf64-hppa.c: Likewise.
* som.c: Likewise.
* wasm-module.c: Likewise.
* xsym.c: Likewise.
* bfd-in2.h: Regenerate.
* config.in: Regenerate.
* configure: Regenerate.
19 files changed:
bfd/ChangeLog
bfd/bfd-in.h
bfd/bfd-in2.h
bfd/bfd.c
bfd/config.in
bfd/configure
bfd/configure.ac
bfd/elf32-m68hc1x.c
bfd/elf64-hppa.c
bfd/elflink.c
bfd/elfnn-riscv.c
bfd/hosts/x86-64linux.h
bfd/hpux-core.c
bfd/peXXigen.c
bfd/som.c
bfd/sysdep.h
bfd/trad-core.c
bfd/wasm-module.c
bfd/xsym.c
This page took 0.025351 seconds and 4 git commands to generate.