From: Alan Modra Date: Tue, 30 Mar 2021 23:37:02 +0000 (+1030) Subject: Remove bfd_stdint.h X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3dfb1b6d34ec74160735230f606b1df55c917f9d;p=binutils-gdb.git Remove bfd_stdint.h If we require C99 for binutils then stdint.h is available. bfd/ * .gitignore: Delete bfd_stdint.h entry. * Makefile.am (bfdinclude_HEADERS): Delete bfd_stdint.h. (BUILD_HFILES, LOCAL_H_DEPS): Likewise. * bfd-in.h: Include stdint.h in place of bfd_stdint.h. * configure.ac: Don't invoke GCC_HEADER_STDINT. * configure.com: Don't create bfd_stdint.h. * Makefile.in: Regenerate. * aclocal.m4: Regenerate. * bfd-in2.h: Regenerate. * config.in: Regenerate. * configure: Regenerate. * doc/Makefile.in: Regenerate. * po/BLD-POTFILES.in: Regenerate. binutils/ * coffdump.c: Include stdint.h in place of bfd_stdint.h. * dwarf.c: Likewise. gas/ * config/tc-aarch64.c: Include stdint.h in place of bfd_stdint.h. * config/tc-crx.c: Likewise. * config/tc-nds32.h: Likewise. include/ * cgen/basic-modes.h: Include stdint.h in place of bfd_stdint.h. * elf/nfp.h: Likewise. * opcode/aarch64.h: Likewise. * opcode/cgen.h: Likewise. * opcode/nfp.h: Likewise. * opcode/ppc.h: Likewise. ld/ * elf-hints-local.h: Include stdint.h in place of bfd_stdint.h. * emultempl/nds32elf.em: Likewise. * testsuite/ld-elf/mbind2b.c: Likewise. * testsuite/ld-elf/pr18718.c: Likewise. * testsuite/ld-elf/pr18720a.c: Likewise. * testsuite/ld-elf/pr25749-1.c: Likewise. * testsuite/ld-elf/pr25749-1a.c: Likewise. * testsuite/ld-elf/pr25749-1b.c: Likewise. * testsuite/ld-elf/pr25749-1c.c: Likewise. * testsuite/ld-elf/pr25749-1d.c: Likewise. * testsuite/ld-elf/pr25749-2.c: Likewise. * testsuite/ld-elf/pr25754-1a.c: Likewise. * testsuite/ld-elf/pr25754-2a.c: Likewise. * testsuite/ld-elf/pr25754-3a.c: Likewise. * testsuite/ld-elf/pr25754-4a.c: Likewise. * testsuite/ld-elf/pr25754-5a.c: Likewise. * testsuite/ld-elf/pr25754-6a.c: Likewise. opcodes/ * aarch64-dis.c: Include stdint.h in place of bfd_stdint.h. * aarch64-dis.h: Likewise. * aarch64-opc.c: Likewise. * avr-dis.c: Likewise. * csky-dis.c: Likewise. * nds32-asm.c: Likewise. * nds32-dis.c: Likewise. * nfp-dis.c: Likewise. * riscv-dis.c: Likewise. * s12z-dis.c: Likewise. * wasm32-dis.c: Likewise. --- diff --git a/bfd/.gitignore b/bfd/.gitignore index 33161338b05..0a5530d128a 100644 --- a/bfd/.gitignore +++ b/bfd/.gitignore @@ -1,6 +1,5 @@ /bfd-in3.h /bfd.h -/bfd_stdint.h /bfdver.h /elf32-ia64.c /elf32-target.h diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 59362799c97..58ddab03c02 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,19 @@ +2021-03-31 Alan Modra + + * .gitignore: Delete bfd_stdint.h entry. + * Makefile.am (bfdinclude_HEADERS): Delete bfd_stdint.h. + (BUILD_HFILES, LOCAL_H_DEPS): Likewise. + * bfd-in.h: Include stdint.h in place of bfd_stdint.h. + * configure.ac: Don't invoke GCC_HEADER_STDINT. + * configure.com: Don't create bfd_stdint.h. + * Makefile.in: Regenerate. + * aclocal.m4: Regenerate. + * bfd-in2.h: Regenerate. + * config.in: Regenerate. + * configure: Regenerate. + * doc/Makefile.in: Regenerate. + * po/BLD-POTFILES.in: Regenerate. + 2021-03-31 Alan Modra * bfd-in.h: Include string.h. diff --git a/bfd/Makefile.am b/bfd/Makefile.am index 3f143dc227b..ed2f701805d 100644 --- a/bfd/Makefile.am +++ b/bfd/Makefile.am @@ -33,7 +33,7 @@ bfdlibdir = @bfdlibdir@ bfdincludedir = @bfdincludedir@ bfdlib_LTLIBRARIES = libbfd.la bfdinclude_HEADERS = $(BFD_H) $(INCDIR)/ansidecl.h $(INCDIR)/symcat.h \ - bfd_stdint.h $(INCDIR)/diagnostics.h $(INCDIR)/bfdlink.h + $(INCDIR)/diagnostics.h $(INCDIR)/bfdlink.h else !INSTALL_LIBBFD # Empty these so that the respective installation directories will not be created. bfdlibdir = @@ -700,7 +700,7 @@ SOURCE_HFILES = \ ## ... and .h files which are in the build tree, minus config.h and bfd.h BUILD_HFILES = \ - bfdver.h elf32-target.h elf64-target.h targmatch.h bfd_stdint.h + bfdver.h elf32-target.h elf64-target.h targmatch.h # Ensure they are built early: BUILT_SOURCES = $(BUILD_HFILES) @@ -863,7 +863,7 @@ pex64igen.c: peXXigen.c $(SED) -e s/XX/pex64/g < $< >> $@ BFD_H_DEPS= $(INCDIR)/ansidecl.h $(INCDIR)/symcat.h $(INCDIR)/diagnostics.h -LOCAL_H_DEPS= libbfd.h sysdep.h config.h bfd_stdint.h +LOCAL_H_DEPS= libbfd.h sysdep.h config.h $(BFD32_LIBS) \ $(BFD64_LIBS) \ $(ALL_MACHINES) \ diff --git a/bfd/Makefile.in b/bfd/Makefile.in index bd646583355..12807d99760 100644 --- a/bfd/Makefile.in +++ b/bfd/Makefile.in @@ -124,7 +124,6 @@ am__aclocal_m4_deps = $(top_srcdir)/../config/acx.m4 \ $(top_srcdir)/../config/plugins.m4 \ $(top_srcdir)/../config/po.m4 \ $(top_srcdir)/../config/progtest.m4 \ - $(top_srcdir)/../config/stdint.m4 \ $(top_srcdir)/../config/zlib.m4 $(top_srcdir)/../libtool.m4 \ $(top_srcdir)/../ltoptions.m4 $(top_srcdir)/../ltsugar.m4 \ $(top_srcdir)/../ltversion.m4 $(top_srcdir)/../lt~obsolete.m4 \ @@ -249,7 +248,7 @@ am__can_run_installinfo = \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__bfdinclude_HEADERS_DIST = $(INCDIR)/plugin-api.h bfd.h \ - $(INCDIR)/ansidecl.h $(INCDIR)/symcat.h bfd_stdint.h \ + $(INCDIR)/ansidecl.h $(INCDIR)/symcat.h \ $(INCDIR)/diagnostics.h $(INCDIR)/bfdlink.h HEADERS = $(bfdinclude_HEADERS) RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ @@ -470,7 +469,7 @@ libbfd_la_LDFLAGS = $(am__append_1) -release `cat libtool-soversion` \ @INSTALL_LIBBFD_FALSE@bfdinclude_HEADERS = $(am__append_2) @INSTALL_LIBBFD_TRUE@bfdinclude_HEADERS = $(BFD_H) \ @INSTALL_LIBBFD_TRUE@ $(INCDIR)/ansidecl.h $(INCDIR)/symcat.h \ -@INSTALL_LIBBFD_TRUE@ bfd_stdint.h $(INCDIR)/diagnostics.h \ +@INSTALL_LIBBFD_TRUE@ $(INCDIR)/diagnostics.h \ @INSTALL_LIBBFD_TRUE@ $(INCDIR)/bfdlink.h $(am__append_2) @INSTALL_LIBBFD_FALSE@rpath_bfdlibdir = @bfdlibdir@ @INSTALL_LIBBFD_FALSE@noinst_LTLIBRARIES = libbfd.la @@ -1123,7 +1122,7 @@ SOURCE_HFILES = \ xcofflink.h xsym.h BUILD_HFILES = \ - bfdver.h elf32-target.h elf64-target.h targmatch.h bfd_stdint.h + bfdver.h elf32-target.h elf64-target.h targmatch.h # Ensure they are built early: @@ -1155,7 +1154,7 @@ libbfd_la_LIBADD = `cat ofiles` @SHARED_LIBADD@ $(LIBDL) $(ZLIB) noinst_LIBRARIES = libbfd.a libbfd_a_SOURCES = BFD_H_DEPS = $(INCDIR)/ansidecl.h $(INCDIR)/symcat.h $(INCDIR)/diagnostics.h -LOCAL_H_DEPS = libbfd.h sysdep.h config.h bfd_stdint.h +LOCAL_H_DEPS = libbfd.h sysdep.h config.h BFD_H_FILES = bfd-in.h init.c opncls.c libbfd.c \ bfdio.c bfdwin.c section.c archures.c reloc.c \ syms.c bfd.c archive.c corefile.c targets.c format.c \ diff --git a/bfd/aclocal.m4 b/bfd/aclocal.m4 index 519325d4aef..a62ee4dea66 100644 --- a/bfd/aclocal.m4 +++ b/bfd/aclocal.m4 @@ -1178,7 +1178,6 @@ m4_include([../config/override.m4]) m4_include([../config/plugins.m4]) m4_include([../config/po.m4]) m4_include([../config/progtest.m4]) -m4_include([../config/stdint.m4]) m4_include([../config/zlib.m4]) m4_include([../libtool.m4]) m4_include([../ltoptions.m4]) diff --git a/bfd/bfd-in.h b/bfd/bfd-in.h index f90f7180911..46a0fcd4417 100644 --- a/bfd/bfd-in.h +++ b/bfd/bfd-in.h @@ -34,7 +34,7 @@ extern "C" { #include "ansidecl.h" #include "symcat.h" -#include "bfd_stdint.h" +#include #include "diagnostics.h" #include #include diff --git a/bfd/bfd-in2.h b/bfd/bfd-in2.h index 426ab86da7a..92af6ca8af2 100644 --- a/bfd/bfd-in2.h +++ b/bfd/bfd-in2.h @@ -41,7 +41,7 @@ extern "C" { #include "ansidecl.h" #include "symcat.h" -#include "bfd_stdint.h" +#include #include "diagnostics.h" #include #include diff --git a/bfd/config.in b/bfd/config.in index 18fb8aeb50c..14f3cac7677 100644 --- a/bfd/config.in +++ b/bfd/config.in @@ -326,9 +326,6 @@ /* Define to the version of this package. */ #undef PACKAGE_VERSION -/* The size of `char', as computed by sizeof. */ -#undef SIZEOF_CHAR - /* The size of `int', as computed by sizeof. */ #undef SIZEOF_INT @@ -341,9 +338,6 @@ /* The size of `off_t', as computed by sizeof. */ #undef SIZEOF_OFF_T -/* The size of `short', as computed by sizeof. */ -#undef SIZEOF_SHORT - /* The size of `void *', as computed by sizeof. */ #undef SIZEOF_VOID_P diff --git a/bfd/configure b/bfd/configure index accd39cc59e..fa499bba7bc 100755 --- a/bfd/configure +++ b/bfd/configure @@ -13567,407 +13567,6 @@ fi done - - -inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'` - -acx_cv_header_stdint=stddef.h -acx_cv_header_stdint_kind="(already complete)" -for i in stdint.h $inttype_headers; do - unset ac_cv_type_uintptr_t - unset ac_cv_type_uintmax_t - unset ac_cv_type_int_least32_t - unset ac_cv_type_int_fast32_t - unset ac_cv_type_uint64_t - $as_echo_n "looking for a compliant stdint.h in $i, " >&6 - ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include -#include <$i> -" -if test "x$ac_cv_type_uintmax_t" = xyes; then : - acx_cv_header_stdint=$i -else - continue -fi - - ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include -#include <$i> -" -if test "x$ac_cv_type_uintptr_t" = xyes; then : - -else - acx_cv_header_stdint_kind="(mostly complete)" -fi - - ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include -#include <$i> -" -if test "x$ac_cv_type_int_least32_t" = xyes; then : - -else - acx_cv_header_stdint_kind="(mostly complete)" -fi - - ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include -#include <$i> -" -if test "x$ac_cv_type_int_fast32_t" = xyes; then : - -else - acx_cv_header_stdint_kind="(mostly complete)" -fi - - ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include -#include <$i> -" -if test "x$ac_cv_type_uint64_t" = xyes; then : - -else - acx_cv_header_stdint_kind="(lacks uint64_t)" -fi - - break -done -if test "$acx_cv_header_stdint" = stddef.h; then - acx_cv_header_stdint_kind="(lacks uintmax_t)" - for i in stdint.h $inttype_headers; do - unset ac_cv_type_uintptr_t - unset ac_cv_type_uint32_t - unset ac_cv_type_uint64_t - $as_echo_n "looking for an incomplete stdint.h in $i, " >&6 - ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include -#include <$i> -" -if test "x$ac_cv_type_uint32_t" = xyes; then : - acx_cv_header_stdint=$i -else - continue -fi - - ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include -#include <$i> -" -if test "x$ac_cv_type_uint64_t" = xyes; then : - -fi - - ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include -#include <$i> -" -if test "x$ac_cv_type_uintptr_t" = xyes; then : - -fi - - break - done -fi -if test "$acx_cv_header_stdint" = stddef.h; then - acx_cv_header_stdint_kind="(u_intXX_t style)" - for i in sys/types.h $inttype_headers; do - unset ac_cv_type_u_int32_t - unset ac_cv_type_u_int64_t - $as_echo_n "looking for u_intXX_t types in $i, " >&6 - ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include -#include <$i> -" -if test "x$ac_cv_type_u_int32_t" = xyes; then : - acx_cv_header_stdint=$i -else - continue -fi - - ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include -#include <$i> -" -if test "x$ac_cv_type_u_int64_t" = xyes; then : - -fi - - break - done -fi -if test "$acx_cv_header_stdint" = stddef.h; then - acx_cv_header_stdint_kind="(using manual detection)" -fi - -test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no -test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no -test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no -test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no -test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no - -# ----------------- Summarize what we found so far - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in bfd_stdint.h" >&5 -$as_echo_n "checking what to include in bfd_stdint.h... " >&6; } - -case `$as_basename -- bfd_stdint.h || -$as_expr X/bfd_stdint.h : '.*/\([^/][^/]*\)/*$' \| \ - Xbfd_stdint.h : 'X\(//\)$' \| \ - Xbfd_stdint.h : 'X\(/\)' \| . 2>/dev/null || -$as_echo X/bfd_stdint.h | - sed '/^.*\/\([^/][^/]*\)\/*$/{ - s//\1/ - q - } - /^X\/\(\/\/\)$/{ - s//\1/ - q - } - /^X\/\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'` in - stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5 -$as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;; - inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5 -$as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;; - *) ;; -esac - -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5 -$as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; } - -# ----------------- done included file, check C basic types -------- - -# Lacking an uintptr_t? Test size of void * -case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in - stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler -# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects -# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. -# This bug is HP SR number 8606223364. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 -$as_echo_n "checking size of void *... " >&6; } -if ${ac_cv_sizeof_void_p+:} false; then : - $as_echo_n "(cached) " >&6 -else - if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then : - -else - if test "$ac_cv_type_void_p" = yes; then - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error 77 "cannot compute sizeof (void *) -See \`config.log' for more details" "$LINENO" 5; } - else - ac_cv_sizeof_void_p=0 - fi -fi - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 -$as_echo "$ac_cv_sizeof_void_p" >&6; } - - - -cat >>confdefs.h <<_ACEOF -#define SIZEOF_VOID_P $ac_cv_sizeof_void_p -_ACEOF - - ;; -esac - -# Lacking an uint64_t? Test size of long -case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in - stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler -# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects -# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. -# This bug is HP SR number 8606223364. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 -$as_echo_n "checking size of long... " >&6; } -if ${ac_cv_sizeof_long+:} false; then : - $as_echo_n "(cached) " >&6 -else - if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : - -else - if test "$ac_cv_type_long" = yes; then - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error 77 "cannot compute sizeof (long) -See \`config.log' for more details" "$LINENO" 5; } - else - ac_cv_sizeof_long=0 - fi -fi - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 -$as_echo "$ac_cv_sizeof_long" >&6; } - - - -cat >>confdefs.h <<_ACEOF -#define SIZEOF_LONG $ac_cv_sizeof_long -_ACEOF - - ;; -esac - -if test $acx_cv_header_stdint = stddef.h; then - # Lacking a good header? Test size of everything and deduce all types. - # The cast to long int works around a bug in the HP C Compiler -# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects -# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. -# This bug is HP SR number 8606223364. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 -$as_echo_n "checking size of int... " >&6; } -if ${ac_cv_sizeof_int+:} false; then : - $as_echo_n "(cached) " >&6 -else - if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : - -else - if test "$ac_cv_type_int" = yes; then - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error 77 "cannot compute sizeof (int) -See \`config.log' for more details" "$LINENO" 5; } - else - ac_cv_sizeof_int=0 - fi -fi - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 -$as_echo "$ac_cv_sizeof_int" >&6; } - - - -cat >>confdefs.h <<_ACEOF -#define SIZEOF_INT $ac_cv_sizeof_int -_ACEOF - - - # The cast to long int works around a bug in the HP C Compiler -# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects -# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. -# This bug is HP SR number 8606223364. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 -$as_echo_n "checking size of short... " >&6; } -if ${ac_cv_sizeof_short+:} false; then : - $as_echo_n "(cached) " >&6 -else - if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then : - -else - if test "$ac_cv_type_short" = yes; then - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error 77 "cannot compute sizeof (short) -See \`config.log' for more details" "$LINENO" 5; } - else - ac_cv_sizeof_short=0 - fi -fi - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 -$as_echo "$ac_cv_sizeof_short" >&6; } - - - -cat >>confdefs.h <<_ACEOF -#define SIZEOF_SHORT $ac_cv_sizeof_short -_ACEOF - - - # The cast to long int works around a bug in the HP C Compiler -# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects -# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. -# This bug is HP SR number 8606223364. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5 -$as_echo_n "checking size of char... " >&6; } -if ${ac_cv_sizeof_char+:} false; then : - $as_echo_n "(cached) " >&6 -else - if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then : - -else - if test "$ac_cv_type_char" = yes; then - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error 77 "cannot compute sizeof (char) -See \`config.log' for more details" "$LINENO" 5; } - else - ac_cv_sizeof_char=0 - fi -fi - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5 -$as_echo "$ac_cv_sizeof_char" >&6; } - - - -cat >>confdefs.h <<_ACEOF -#define SIZEOF_CHAR $ac_cv_sizeof_char -_ACEOF - - - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5 -$as_echo_n "checking for type equivalent to int8_t... " >&6; } - case "$ac_cv_sizeof_char" in - 1) acx_cv_type_int8_t=char ;; - *) as_fn_error $? "no 8-bit type, please report a bug" "$LINENO" 5 - esac - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5 -$as_echo "$acx_cv_type_int8_t" >&6; } - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5 -$as_echo_n "checking for type equivalent to int16_t... " >&6; } - case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in - 2:*) acx_cv_type_int16_t=int ;; - *:2) acx_cv_type_int16_t=short ;; - *) as_fn_error $? "no 16-bit type, please report a bug" "$LINENO" 5 - esac - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5 -$as_echo "$acx_cv_type_int16_t" >&6; } - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5 -$as_echo_n "checking for type equivalent to int32_t... " >&6; } - case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in - 4:*) acx_cv_type_int32_t=int ;; - *:4) acx_cv_type_int32_t=long ;; - *) as_fn_error $? "no 32-bit type, please report a bug" "$LINENO" 5 - esac - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5 -$as_echo "$acx_cv_type_int32_t" >&6; } -fi - -# These tests are here to make the output prettier - -if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then - case "$ac_cv_sizeof_long" in - 8) acx_cv_type_int64_t=long ;; - esac - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5 -$as_echo_n "checking for type equivalent to int64_t... " >&6; } - { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5 -$as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; } -fi - -# Now we can use the above types - -if test "$ac_cv_type_uintptr_t" != yes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5 -$as_echo_n "checking for type equivalent to intptr_t... " >&6; } - case $ac_cv_sizeof_void_p in - 2) acx_cv_type_intptr_t=int16_t ;; - 4) acx_cv_type_intptr_t=int32_t ;; - 8) acx_cv_type_intptr_t=int64_t ;; - *) as_fn_error $? "no equivalent for intptr_t, please report a bug" "$LINENO" 5 - esac - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5 -$as_echo "$acx_cv_type_intptr_t" >&6; } -fi - -# ----------------- done all checks, emit header ------------- -ac_config_commands="$ac_config_commands bfd_stdint.h" - - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } if ${ac_cv_header_time+:} false; then : @@ -17458,24 +17057,6 @@ fi LINGUAS="${LINGUAS-%UNSET%}" -GCC="$GCC" -CC="$CC" -acx_cv_header_stdint="$acx_cv_header_stdint" -acx_cv_type_int8_t="$acx_cv_type_int8_t" -acx_cv_type_int16_t="$acx_cv_type_int16_t" -acx_cv_type_int32_t="$acx_cv_type_int32_t" -acx_cv_type_int64_t="$acx_cv_type_int64_t" -acx_cv_type_intptr_t="$acx_cv_type_intptr_t" -ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t" -ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t" -ac_cv_type_uint64_t="$ac_cv_type_uint64_t" -ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t" -ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t" -ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t" -ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t" -ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p" - - _ACEOF @@ -17489,7 +17070,6 @@ do "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;; "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; - "bfd_stdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS bfd_stdint.h" ;; "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; "bfd-in3.h") CONFIG_FILES="$CONFIG_FILES bfd-in3.h:bfd-in2.h" ;; @@ -18923,378 +18503,6 @@ _LT_EOF ;; esac done ;; - "bfd_stdint.h":C) -if test "$GCC" = yes; then - echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h -else - echo "/* generated for $CC */" > tmp-stdint.h -fi - -sed 's/^ *//' >> tmp-stdint.h < -EOF - -if test "$acx_cv_header_stdint" != stdint.h; then - echo "#include " >> tmp-stdint.h -fi -if test "$acx_cv_header_stdint" != stddef.h; then - echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h -fi - -sed 's/^ *//' >> tmp-stdint.h <> tmp-stdint.h <> tmp-stdint.h <> tmp-stdint.h <> tmp-stdint.h <> tmp-stdint.h <> tmp-stdint.h <> tmp-stdint.h <= 199901L - #ifndef _INT64_T - #define _INT64_T - #ifndef __int64_t_defined - #ifndef int64_t - typedef long long int64_t; - #endif - #endif - #endif - #ifndef _UINT64_T - #define _UINT64_T - #ifndef uint64_t - typedef unsigned long long uint64_t; - #endif - #endif - - #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0 - /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and - does not implement __extension__. But that compiler doesn't define - __GNUC_MINOR__. */ - # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__) - # define __extension__ - # endif - - # ifndef _INT64_T - # define _INT64_T - # ifndef int64_t - __extension__ typedef long long int64_t; - # endif - # endif - # ifndef _UINT64_T - # define _UINT64_T - # ifndef uint64_t - __extension__ typedef unsigned long long uint64_t; - # endif - # endif - - #elif !defined __STRICT_ANSI__ - # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__ - - # ifndef _INT64_T - # define _INT64_T - # ifndef int64_t - typedef __int64 int64_t; - # endif - # endif - # ifndef _UINT64_T - # define _UINT64_T - # ifndef uint64_t - typedef unsigned __int64 uint64_t; - # endif - # endif - # endif /* compiler */ - - #endif /* ANSI version */ -EOF -fi - -# ------------- done int64_t types, emit intptr types ------------ -if test "$ac_cv_type_uintptr_t" != yes; then - sed 's/^ *//' >> tmp-stdint.h <> tmp-stdint.h <> tmp-stdint.h <> tmp-stdint.h <> tmp-stdint.h < -$! -$! $! create targmatch.h $! $ write sys$output "Generate `targmatch.h'" diff --git a/bfd/doc/Makefile.in b/bfd/doc/Makefile.in index a0b5195c1f5..93ba83ae4ac 100644 --- a/bfd/doc/Makefile.in +++ b/bfd/doc/Makefile.in @@ -119,7 +119,6 @@ am__aclocal_m4_deps = $(top_srcdir)/../config/acx.m4 \ $(top_srcdir)/../config/plugins.m4 \ $(top_srcdir)/../config/po.m4 \ $(top_srcdir)/../config/progtest.m4 \ - $(top_srcdir)/../config/stdint.m4 \ $(top_srcdir)/../config/zlib.m4 $(top_srcdir)/../libtool.m4 \ $(top_srcdir)/../ltoptions.m4 $(top_srcdir)/../ltsugar.m4 \ $(top_srcdir)/../ltversion.m4 $(top_srcdir)/../lt~obsolete.m4 \ diff --git a/bfd/po/BLD-POTFILES.in b/bfd/po/BLD-POTFILES.in index 5fc39cfce8b..f81e2b4037b 100644 --- a/bfd/po/BLD-POTFILES.in +++ b/bfd/po/BLD-POTFILES.in @@ -1,4 +1,3 @@ -bfd_stdint.h bfdver.h elf32-aarch64.c elf32-ia64.c diff --git a/binutils/ChangeLog b/binutils/ChangeLog index b62f115443f..aa7d9d80722 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,8 @@ +2021-03-31 Alan Modra + + * coffdump.c: Include stdint.h in place of bfd_stdint.h. + * dwarf.c: Likewise. + 2021-03-31 Alan Modra * prdbg.c (pr_function_type): Replace LITSTTCPY with strcpy. diff --git a/binutils/coffdump.c b/binutils/coffdump.c index 5ce39859d56..dd40221b45d 100644 --- a/binutils/coffdump.c +++ b/binutils/coffdump.c @@ -26,7 +26,7 @@ #include "sysdep.h" #include "bfd.h" -#include "bfd_stdint.h" +#include #include "libiberty.h" #include "bucomm.h" diff --git a/binutils/dwarf.c b/binutils/dwarf.c index 23ee70510f7..476e3919d1f 100644 --- a/binutils/dwarf.c +++ b/binutils/dwarf.c @@ -21,7 +21,7 @@ #include "sysdep.h" #include "libiberty.h" #include "bfd.h" -#include "bfd_stdint.h" +#include #include "bucomm.h" #include "elfcomm.h" #include "elf/common.h" diff --git a/gas/ChangeLog b/gas/ChangeLog index 354a14be15d..174cc86b2c6 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,9 @@ +2021-03-31 Alan Modra + + * config/tc-aarch64.c: Include stdint.h in place of bfd_stdint.h. + * config/tc-crx.c: Likewise. + * config/tc-nds32.h: Likewise. + 2021-03-30 Jan Beulich * config/tc-i386.c (build_modrm_byte): Change return type. diff --git a/gas/config/tc-aarch64.c b/gas/config/tc-aarch64.c index 6f782d057f8..9dd1defd09b 100644 --- a/gas/config/tc-aarch64.c +++ b/gas/config/tc-aarch64.c @@ -22,7 +22,7 @@ #include "as.h" #include #include -#include "bfd_stdint.h" +#include #define NO_RELOC 0 #include "safe-ctype.h" #include "subsegs.h" diff --git a/gas/config/tc-crx.c b/gas/config/tc-crx.c index 52eebcb7e94..a82acb5fa21 100644 --- a/gas/config/tc-crx.c +++ b/gas/config/tc-crx.c @@ -23,7 +23,7 @@ MA 02110-1301, USA. */ #include "as.h" -#include "bfd_stdint.h" +#include #include "safe-ctype.h" #include "dwarf2dbg.h" #include "opcode/crx.h" diff --git a/gas/config/tc-nds32.h b/gas/config/tc-nds32.h index 7dbeb591b58..a74390a57e7 100644 --- a/gas/config/tc-nds32.h +++ b/gas/config/tc-nds32.h @@ -22,7 +22,7 @@ #ifndef TC_NDS32 #define TC_NDS32 -#include "bfd_stdint.h" +#include /* Enum mapping symbol. */ enum mstate diff --git a/gas/config/tc-pru.c b/gas/config/tc-pru.c index 5c41fa08f2a..139e28ecbae 100644 --- a/gas/config/tc-pru.c +++ b/gas/config/tc-pru.c @@ -21,7 +21,7 @@ 02110-1301, USA. */ #include "as.h" -#include "bfd_stdint.h" +#include #include "opcode/pru.h" #include "elf/pru.h" #include "tc-pru.h" diff --git a/include/ChangeLog b/include/ChangeLog index 2bacadf01e2..a542710cd71 100644 --- a/include/ChangeLog +++ b/include/ChangeLog @@ -1,3 +1,12 @@ +2021-03-31 Alan Modra + + * cgen/basic-modes.h: Include stdint.h in place of bfd_stdint.h. + * elf/nfp.h: Likewise. + * opcode/aarch64.h: Likewise. + * opcode/cgen.h: Likewise. + * opcode/nfp.h: Likewise. + * opcode/ppc.h: Likewise. + 2021-03-29 Alan Modra * opcode/aarch64.h (alias_opcode_p): Simplify boolean expression. diff --git a/include/cgen/basic-modes.h b/include/cgen/basic-modes.h index 3a476d4a1df..2d76594524c 100644 --- a/include/cgen/basic-modes.h +++ b/include/cgen/basic-modes.h @@ -24,12 +24,10 @@ /* This file doesn't contain all modes, just the basic/portable ones. - It also provides access to stdint.h (*1) so the includer doesn't have - to deal with the portability issues. - (*1): To the extent that bfd_stdint.h does for now. */ + It also provides access to stdint.h so the includer doesn't have + to deal with the portability issues. */ -/* IWBN to avoid unnecessary dependencies on bfd-anything. */ -#include "bfd_stdint.h" +#include typedef int8_t QI; typedef uint8_t UQI; diff --git a/include/elf/nfp.h b/include/elf/nfp.h index ae5f4f8e064..ca609c19967 100644 --- a/include/elf/nfp.h +++ b/include/elf/nfp.h @@ -24,7 +24,7 @@ #include "bfd.h" #include "elf/common.h" #include "elf/reloc-macros.h" -#include "bfd_stdint.h" +#include #ifdef __cplusplus extern "C" diff --git a/include/opcode/aarch64.h b/include/opcode/aarch64.h index e48bea6db6e..7a97fa837f6 100644 --- a/include/opcode/aarch64.h +++ b/include/opcode/aarch64.h @@ -23,7 +23,7 @@ #define OPCODE_AARCH64_H #include "bfd.h" -#include "bfd_stdint.h" +#include #include #include diff --git a/include/opcode/cgen.h b/include/opcode/cgen.h index 0e68c85dfec..8b7d2a4b547 100644 --- a/include/opcode/cgen.h +++ b/include/opcode/cgen.h @@ -24,8 +24,7 @@ #include "symcat.h" #include "cgen/bitset.h" -/* ??? IWBN to replace bfd in the name. */ -#include "bfd_stdint.h" +#include #ifdef __cplusplus extern "C" { diff --git a/include/opcode/nfp.h b/include/opcode/nfp.h index 7f322a100ed..88c7d08f483 100644 --- a/include/opcode/nfp.h +++ b/include/opcode/nfp.h @@ -23,7 +23,7 @@ #define _NFP_H_ #include "bfd.h" -#include "bfd_stdint.h" +#include #include "elf/nfp.h" #ifdef __cplusplus diff --git a/include/opcode/ppc.h b/include/opcode/ppc.h index a5ee560aa17..1c5f383e209 100644 --- a/include/opcode/ppc.h +++ b/include/opcode/ppc.h @@ -22,7 +22,7 @@ #ifndef PPC_H #define PPC_H -#include "bfd_stdint.h" +#include #ifdef __cplusplus extern "C" { diff --git a/ld/ChangeLog b/ld/ChangeLog index 4b96e1a7b6d..dbdb4e128bf 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,23 @@ +2021-03-31 Alan Modra + + * elf-hints-local.h: Include stdint.h in place of bfd_stdint.h. + * emultempl/nds32elf.em: Likewise. + * testsuite/ld-elf/mbind2b.c: Likewise. + * testsuite/ld-elf/pr18718.c: Likewise. + * testsuite/ld-elf/pr18720a.c: Likewise. + * testsuite/ld-elf/pr25749-1.c: Likewise. + * testsuite/ld-elf/pr25749-1a.c: Likewise. + * testsuite/ld-elf/pr25749-1b.c: Likewise. + * testsuite/ld-elf/pr25749-1c.c: Likewise. + * testsuite/ld-elf/pr25749-1d.c: Likewise. + * testsuite/ld-elf/pr25749-2.c: Likewise. + * testsuite/ld-elf/pr25754-1a.c: Likewise. + * testsuite/ld-elf/pr25754-2a.c: Likewise. + * testsuite/ld-elf/pr25754-3a.c: Likewise. + * testsuite/ld-elf/pr25754-4a.c: Likewise. + * testsuite/ld-elf/pr25754-5a.c: Likewise. + * testsuite/ld-elf/pr25754-6a.c: Likewise. + 2021-03-29 Alan Modra * emultempl/aix.em (gld${EMULATION_NAME}_before_allocation): Simplify diff --git a/ld/elf-hints-local.h b/ld/elf-hints-local.h index 02dd019d491..9cdfa2f2981 100644 --- a/ld/elf-hints-local.h +++ b/ld/elf-hints-local.h @@ -25,7 +25,7 @@ #ifndef _ELF_HINTS_H_ #define _ELF_HINTS_H_ -#include "bfd_stdint.h" +#include /* Hints file produced by ldconfig. */ struct elfhints_hdr diff --git a/ld/emultempl/nds32elf.em b/ld/emultempl/nds32elf.em index 0ebdec95655..b00b7746cca 100644 --- a/ld/emultempl/nds32elf.em +++ b/ld/emultempl/nds32elf.em @@ -24,7 +24,7 @@ fragment < #include "elf32-nds32.h" static int relax_fp_as_gp = 1; /* --mrelax-omit-fp */ diff --git a/ld/testsuite/ld-elf/mbind2b.c b/ld/testsuite/ld-elf/mbind2b.c index 10922a1f046..7e1367d6b0f 100644 --- a/ld/testsuite/ld-elf/mbind2b.c +++ b/ld/testsuite/ld-elf/mbind2b.c @@ -1,6 +1,6 @@ #include #include -#include +#include extern char bss_in_mbind0; extern char data_in_mbind3; diff --git a/ld/testsuite/ld-elf/pr18718.c b/ld/testsuite/ld-elf/pr18718.c index 426f46a42cb..bbf8e037c13 100644 --- a/ld/testsuite/ld-elf/pr18718.c +++ b/ld/testsuite/ld-elf/pr18718.c @@ -1,5 +1,5 @@ #include -#include +#include extern void foo (void); extern void check_ptr_eq (void (*) (void), void (*) (void)); diff --git a/ld/testsuite/ld-elf/pr18720a.c b/ld/testsuite/ld-elf/pr18720a.c index b4a33696c6d..fec4cf902ff 100644 --- a/ld/testsuite/ld-elf/pr18720a.c +++ b/ld/testsuite/ld-elf/pr18720a.c @@ -1,4 +1,4 @@ -#include +#include extern void bar (void); extern void foo (void); diff --git a/ld/testsuite/ld-elf/pr25749-1.c b/ld/testsuite/ld-elf/pr25749-1.c index 12d0574a013..249d80fd169 100644 --- a/ld/testsuite/ld-elf/pr25749-1.c +++ b/ld/testsuite/ld-elf/pr25749-1.c @@ -1,12 +1,12 @@ #include -#include +#include extern intptr_t size (void); int main () { - if (size () == 303 /* size of this file */) + if (size () == 299 /* size of this file */) printf ("PASS\n"); #ifdef __GLIBC_PREREQ # if !__GLIBC_PREREQ (2, 28) diff --git a/ld/testsuite/ld-elf/pr25749-1a.c b/ld/testsuite/ld-elf/pr25749-1a.c index 775623b8c9c..657d29da5b1 100644 --- a/ld/testsuite/ld-elf/pr25749-1a.c +++ b/ld/testsuite/ld-elf/pr25749-1a.c @@ -1,4 +1,4 @@ -#include +#include extern void *_binary_pr25749_1_c_start; extern void *_binary_pr25749_1_c_end; diff --git a/ld/testsuite/ld-elf/pr25749-1b.c b/ld/testsuite/ld-elf/pr25749-1b.c index f02a4087004..328b47cf51f 100644 --- a/ld/testsuite/ld-elf/pr25749-1b.c +++ b/ld/testsuite/ld-elf/pr25749-1b.c @@ -1,4 +1,4 @@ -#include +#include extern void *_binary_pr25749_1_c_size; diff --git a/ld/testsuite/ld-elf/pr25749-1c.c b/ld/testsuite/ld-elf/pr25749-1c.c index f2847d7f623..3203624fb41 100644 --- a/ld/testsuite/ld-elf/pr25749-1c.c +++ b/ld/testsuite/ld-elf/pr25749-1c.c @@ -1,4 +1,4 @@ -#include +#include extern void *_binary_pr25749_1_c_size __attribute__ ((visibility("hidden"))); diff --git a/ld/testsuite/ld-elf/pr25749-1d.c b/ld/testsuite/ld-elf/pr25749-1d.c index 33b869deb5d..361d74c6c88 100644 --- a/ld/testsuite/ld-elf/pr25749-1d.c +++ b/ld/testsuite/ld-elf/pr25749-1d.c @@ -1,4 +1,4 @@ -#include +#include extern void *_binary_pr25749_1_c_start; extern void *_binary_pr25749_1_c_end; diff --git a/ld/testsuite/ld-elf/pr25749-2.c b/ld/testsuite/ld-elf/pr25749-2.c index 3ef6f0c6a7b..9a1b2b802f5 100644 --- a/ld/testsuite/ld-elf/pr25749-2.c +++ b/ld/testsuite/ld-elf/pr25749-2.c @@ -1,12 +1,12 @@ #include -#include +#include extern intptr_t size; int main () { - if (size == 293 /* size of this file */) + if (size == 289 /* size of this file */) printf ("PASS\n"); #ifdef __GLIBC_PREREQ # if !__GLIBC_PREREQ (2, 28) diff --git a/ld/testsuite/ld-elf/pr25754-1a.c b/ld/testsuite/ld-elf/pr25754-1a.c index 2b048ec09bb..bc65c174d05 100644 --- a/ld/testsuite/ld-elf/pr25754-1a.c +++ b/ld/testsuite/ld-elf/pr25754-1a.c @@ -1,5 +1,5 @@ #include -#include +#include extern uintptr_t bar; diff --git a/ld/testsuite/ld-elf/pr25754-2a.c b/ld/testsuite/ld-elf/pr25754-2a.c index 7c9f58116e7..7c7fb28f4d5 100644 --- a/ld/testsuite/ld-elf/pr25754-2a.c +++ b/ld/testsuite/ld-elf/pr25754-2a.c @@ -1,5 +1,5 @@ #include -#include +#include extern uintptr_t bar; diff --git a/ld/testsuite/ld-elf/pr25754-3a.c b/ld/testsuite/ld-elf/pr25754-3a.c index 2d4f02abe5a..e57dfe2cc2d 100644 --- a/ld/testsuite/ld-elf/pr25754-3a.c +++ b/ld/testsuite/ld-elf/pr25754-3a.c @@ -1,5 +1,5 @@ #include -#include +#include extern uintptr_t bar; diff --git a/ld/testsuite/ld-elf/pr25754-4a.c b/ld/testsuite/ld-elf/pr25754-4a.c index e2c2f8d54d0..1148ecae728 100644 --- a/ld/testsuite/ld-elf/pr25754-4a.c +++ b/ld/testsuite/ld-elf/pr25754-4a.c @@ -1,5 +1,5 @@ #include -#include +#include extern uintptr_t *get_bar (void); diff --git a/ld/testsuite/ld-elf/pr25754-5a.c b/ld/testsuite/ld-elf/pr25754-5a.c index cb791dd56f7..8ddfccd5bd0 100644 --- a/ld/testsuite/ld-elf/pr25754-5a.c +++ b/ld/testsuite/ld-elf/pr25754-5a.c @@ -1,5 +1,5 @@ #include -#include +#include extern uintptr_t *get_bar (void); diff --git a/ld/testsuite/ld-elf/pr25754-6a.c b/ld/testsuite/ld-elf/pr25754-6a.c index 59633a3b4dd..b8e7ade4c6d 100644 --- a/ld/testsuite/ld-elf/pr25754-6a.c +++ b/ld/testsuite/ld-elf/pr25754-6a.c @@ -1,5 +1,5 @@ #include -#include +#include extern uintptr_t *get_bar (void); diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog index 7179187f7d0..ae4dea918cb 100644 --- a/opcodes/ChangeLog +++ b/opcodes/ChangeLog @@ -1,3 +1,17 @@ +2021-03-31 Alan Modra + + * aarch64-dis.c: Include stdint.h in place of bfd_stdint.h. + * aarch64-dis.h: Likewise. + * aarch64-opc.c: Likewise. + * avr-dis.c: Likewise. + * csky-dis.c: Likewise. + * nds32-asm.c: Likewise. + * nds32-dis.c: Likewise. + * nfp-dis.c: Likewise. + * riscv-dis.c: Likewise. + * s12z-dis.c: Likewise. + * wasm32-dis.c: Likewise. + 2021-03-30 Jan Beulich * i386-opc.c (cs, ds, ss, es, fs, gs): Delete. diff --git a/opcodes/aarch64-dis.c b/opcodes/aarch64-dis.c index 349d7ea7ec0..1472f7da155 100644 --- a/opcodes/aarch64-dis.c +++ b/opcodes/aarch64-dis.c @@ -19,7 +19,7 @@ see . */ #include "sysdep.h" -#include "bfd_stdint.h" +#include #include "disassemble.h" #include "libiberty.h" #include "opintl.h" diff --git a/opcodes/aarch64-dis.h b/opcodes/aarch64-dis.h index 5bb546a6636..97045114a2e 100644 --- a/opcodes/aarch64-dis.h +++ b/opcodes/aarch64-dis.h @@ -20,7 +20,7 @@ #ifndef OPCODES_AARCH64_DIS_H #define OPCODES_AARCH64_DIS_H -#include "bfd_stdint.h" +#include #include "aarch64-opc.h" /* Lookup opcode WORD in the opcode table. diff --git a/opcodes/aarch64-opc.c b/opcodes/aarch64-opc.c index c4397bc4301..1f04aad5f98 100644 --- a/opcodes/aarch64-opc.c +++ b/opcodes/aarch64-opc.c @@ -22,7 +22,7 @@ #include #include #include -#include "bfd_stdint.h" +#include #include #include diff --git a/opcodes/avr-dis.c b/opcodes/avr-dis.c index b58958fae7a..06f8a0c663b 100644 --- a/opcodes/avr-dis.c +++ b/opcodes/avr-dis.c @@ -25,7 +25,7 @@ #include "disassemble.h" #include "opintl.h" #include "libiberty.h" -#include "bfd_stdint.h" +#include struct avr_opcodes_s { diff --git a/opcodes/csky-dis.c b/opcodes/csky-dis.c index 399c180a8dd..45af88c8928 100644 --- a/opcodes/csky-dis.c +++ b/opcodes/csky-dis.c @@ -22,7 +22,7 @@ #include "sysdep.h" #include "config.h" #include -#include "bfd_stdint.h" +#include #include #include "disassemble.h" #include "elf-bfd.h" diff --git a/opcodes/nds32-asm.c b/opcodes/nds32-asm.c index d2f41f5c00b..f641c60f68c 100644 --- a/opcodes/nds32-asm.c +++ b/opcodes/nds32-asm.c @@ -22,7 +22,7 @@ #include "sysdep.h" -#include "bfd_stdint.h" +#include #include #include "safe-ctype.h" diff --git a/opcodes/nds32-dis.c b/opcodes/nds32-dis.c index 96c3f3829c1..25bb475d1ab 100644 --- a/opcodes/nds32-dis.c +++ b/opcodes/nds32-dis.c @@ -27,7 +27,7 @@ #include "symcat.h" #include "libiberty.h" #include "opintl.h" -#include "bfd_stdint.h" +#include #include "hashtab.h" #include "nds32-asm.h" #include "opcode/nds32.h" diff --git a/opcodes/nfp-dis.c b/opcodes/nfp-dis.c index 4f79581d60b..39ded6694ab 100644 --- a/opcodes/nfp-dis.c +++ b/opcodes/nfp-dis.c @@ -33,7 +33,7 @@ #include "opintl.h" #include "elf-bfd.h" #include "bfd.h" -#include "bfd_stdint.h" +#include #define _NFP_ERR_STOP -1 #define _NFP_ERR_CONT -8 diff --git a/opcodes/riscv-dis.c b/opcodes/riscv-dis.c index cc80d909457..7ef4d4df184 100644 --- a/opcodes/riscv-dis.c +++ b/opcodes/riscv-dis.c @@ -29,7 +29,7 @@ #include "elf/riscv.h" #include "cpu-riscv.h" -#include "bfd_stdint.h" +#include #include static enum riscv_spec_class default_priv_spec = PRIV_SPEC_CLASS_NONE; diff --git a/opcodes/s12z-dis.c b/opcodes/s12z-dis.c index 66452977595..4616bc82711 100644 --- a/opcodes/s12z-dis.c +++ b/opcodes/s12z-dis.c @@ -20,7 +20,7 @@ #include "sysdep.h" #include -#include "bfd_stdint.h" +#include #include #include diff --git a/opcodes/wasm32-dis.c b/opcodes/wasm32-dis.c index 69266610ad3..f3fde3286e7 100644 --- a/opcodes/wasm32-dis.c +++ b/opcodes/wasm32-dis.c @@ -27,7 +27,7 @@ #include "elf-bfd.h" #include "elf/internal.h" #include "elf/wasm32.h" -#include "bfd_stdint.h" +#include #ifdef HAVE_LIMITS_H #include