aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2021-03-31 10:07:02 +1030
committerAlan Modra <amodra@gmail.com>2021-03-31 10:49:23 +1030
commit3dfb1b6d34ec74160735230f606b1df55c917f9d (patch)
treef57dd7b40fa1c58c7faa28759de43ca12ca48910 /include
parent57ae980e3290c0c1a9fb4a93144cc5b24457f05a (diff)
downloadfsf-binutils-gdb-3dfb1b6d34ec74160735230f606b1df55c917f9d.zip
fsf-binutils-gdb-3dfb1b6d34ec74160735230f606b1df55c917f9d.tar.gz
fsf-binutils-gdb-3dfb1b6d34ec74160735230f606b1df55c917f9d.tar.bz2
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.
Diffstat (limited to 'include')
-rw-r--r--include/ChangeLog9
-rw-r--r--include/cgen/basic-modes.h8
-rw-r--r--include/elf/nfp.h2
-rw-r--r--include/opcode/aarch64.h2
-rw-r--r--include/opcode/cgen.h3
-rw-r--r--include/opcode/nfp.h2
-rw-r--r--include/opcode/ppc.h2
7 files changed, 17 insertions, 11 deletions
diff --git a/include/ChangeLog b/include/ChangeLog
index 2bacadf..a542710 100644
--- a/include/ChangeLog
+++ b/include/ChangeLog
@@ -1,3 +1,12 @@
+2021-03-31 Alan Modra <amodra@gmail.com>
+
+ * 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 <amodra@gmail.com>
* opcode/aarch64.h (alias_opcode_p): Simplify boolean expression.
diff --git a/include/cgen/basic-modes.h b/include/cgen/basic-modes.h
index 3a476d4..2d76594 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 <stdint.h>
typedef int8_t QI;
typedef uint8_t UQI;
diff --git a/include/elf/nfp.h b/include/elf/nfp.h
index ae5f4f8..ca609c1 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 <stdint.h>
#ifdef __cplusplus
extern "C"
diff --git a/include/opcode/aarch64.h b/include/opcode/aarch64.h
index e48bea6..7a97fa8 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 <stdint.h>
#include <assert.h>
#include <stdlib.h>
diff --git a/include/opcode/cgen.h b/include/opcode/cgen.h
index 0e68c85..8b7d2a4 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 <stdint.h>
#ifdef __cplusplus
extern "C" {
diff --git a/include/opcode/nfp.h b/include/opcode/nfp.h
index 7f322a1..88c7d08 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 <stdint.h>
#include "elf/nfp.h"
#ifdef __cplusplus
diff --git a/include/opcode/ppc.h b/include/opcode/ppc.h
index a5ee560..1c5f383 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 <stdint.h>
#ifdef __cplusplus
extern "C" {