diff options
author | Alan Modra <amodra@gmail.com> | 2021-04-05 15:31:25 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2021-04-05 15:31:25 +0930 |
commit | 23d613801dfb97757f0e8eaf260d154f3e6750b1 (patch) | |
tree | d872be90adf5da5e645886403780962cb0784c96 /gas/configure.ac | |
parent | 87b9f2556d5f47328f3ac59088e9be0759959ebb (diff) | |
download | gdb-23d613801dfb97757f0e8eaf260d154f3e6750b1.zip gdb-23d613801dfb97757f0e8eaf260d154f3e6750b1.tar.gz gdb-23d613801dfb97757f0e8eaf260d154f3e6750b1.tar.bz2 |
C99 gas configury
Also remove alloca stuff since we don't use alloca in gas nowadays.
* configure.ac: Don't check for string.h, strings.h, stdlib.h,
errno.h, limits.h, locale.h or time.h. Don't check for unlink,
remove, sbrk (unused) or setlocale. Adjust gas_test_headers.
Don't check for errno, free, malloc, realoc, sbrk, strstr, getenv
strstr, or vsnprintf declarations.
(AC_ISC_POSIX, AC_FUNC_ALLOCA, AC_C_INLINE): Don't invoke.
* as.h: Don't include alloca-conf.h, include config.h instead.
Include string.h, stdlib.h, errno.h unconditionally. Remove
various fallback declarations.
* asintl.h: Don't test HAVE_LOCALE_H.
* as.c: Don't test HAVE_SETLOCALE.
* dwarf2dbg.c: Include limits.h unconditionally.
* expr.c: Likewise.
* sb.c: Likewise.
* symbols.c: Likewise.
* config/tc-cr16.c: Likewise.
* config/tc-d30v.c: Likewise.
* config/tc-i386.c: Likewise.
* config/tc-ia64.c: Likewise.
* config/tc-tic54x.c (tic54x_mlib): Call remove rather than unlink.
* config.in: Regenerate.
* configure: Regenerate.
* Makefile.in: Regenerate.
* doc/Makefile.in: Regenerate.
Diffstat (limited to 'gas/configure.ac')
-rw-r--r-- | gas/configure.ac | 34 |
1 files changed, 2 insertions, 32 deletions
diff --git a/gas/configure.ac b/gas/configure.ac index 6a96bb7..78efba8 100644 --- a/gas/configure.ac +++ b/gas/configure.ac @@ -29,7 +29,6 @@ dnl we specify this explicitly, automake-1.7 will assume that ylwrap is in dnl gas/ instead of gas/../. AC_CONFIG_AUX_DIR(..) AC_CANONICAL_TARGET -AC_ISC_POSIX AM_INIT_AUTOMAKE @@ -941,8 +940,7 @@ AM_MAINTAINER_MODE AM_CONDITIONAL(GENINSRC_NEVER, false) AC_EXEEXT -AC_CHECK_HEADERS(string.h stdlib.h memory.h strings.h unistd.h errno.h sys/types.h limits.h locale.h time.h sys/stat.h) -ACX_HEADER_STRING +AC_CHECK_HEADERS(memory.h sys/stat.h sys/types.h unistd.h) # Put this here so that autoconf's "cross-compiling" message doesn't confuse # people who are not cross-compiling but are compiling cross-assemblers. @@ -955,14 +953,6 @@ else fi AC_MSG_RESULT($cross_gas) -dnl ansidecl.h will deal with const -dnl AC_C_CONST -AC_FUNC_ALLOCA -AC_C_INLINE - -# VMS doesn't have unlink. -AC_CHECK_FUNCS(unlink remove, break) -AC_CHECK_FUNCS(sbrk setlocale) AC_CHECK_FUNCS(strsignal) AM_LC_MESSAGES @@ -987,29 +977,13 @@ gas_test_headers=" #ifdef HAVE_MEMORY_H #include <memory.h> #endif -#ifdef HAVE_STRING_H #include <string.h> -#else -#ifdef HAVE_STRINGS_H -#include <strings.h> -#endif -#endif -#ifdef HAVE_STDLIB_H #include <stdlib.h> -#endif #ifdef HAVE_UNISTD_H #include <unistd.h> #endif " -# Does errno.h declare errno, or do we have to add a separate declaration -# for it? -GAS_CHECK_DECL_NEEDED(errno, f, int f, [ -#ifdef HAVE_ERRNO_H -#include <errno.h> -#endif -]) - AC_MSG_CHECKING(for a known getopt prototype in unistd.h) AC_CACHE_VAL(gas_cv_decl_getopt_unistd_h, [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([#include <unistd.h>], [extern int getopt (int, char *const*, const char *);])], @@ -1022,12 +996,8 @@ fi GAS_CHECK_DECL_NEEDED(environ, f, char **f, $gas_test_headers) GAS_CHECK_DECL_NEEDED(ffs, f, int (*f)(int), $gas_test_headers) -GAS_CHECK_DECL_NEEDED(free, f, void (*f)(), $gas_test_headers) -GAS_CHECK_DECL_NEEDED(malloc, f, char *(*f)(), $gas_test_headers) -GAS_CHECK_DECL_NEEDED(sbrk, f, char *(*f)(), $gas_test_headers) -GAS_CHECK_DECL_NEEDED(strstr, f, char *(*f)(), $gas_test_headers) -AC_CHECK_DECLS([free, getenv, malloc, mempcpy, realloc, stpcpy, strstr, vsnprintf, asprintf]) +AC_CHECK_DECLS([asprintf, mempcpy, stpcpy]) BFD_BINARY_FOPEN |