diff options
author | Alan Modra <amodra@gmail.com> | 2018-12-18 19:03:51 +1030 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2018-12-18 23:49:48 +1030 |
commit | 2d5d5a8f0a8b5a03454bf168b7fa7024bb1ebbd8 (patch) | |
tree | d04b941775ee98f096c27b5df2fa8da735a1b470 /opcodes | |
parent | a529dcc854968b7f6ad766c714650011dc361382 (diff) | |
download | gdb-2d5d5a8f0a8b5a03454bf168b7fa7024bb1ebbd8.zip gdb-2d5d5a8f0a8b5a03454bf168b7fa7024bb1ebbd8.tar.gz gdb-2d5d5a8f0a8b5a03454bf168b7fa7024bb1ebbd8.tar.bz2 |
Include bfd_stdint.h in bfd.h
This patch adds bfd_stdint.h to bfd.h, so that BFD can use size_t
where appropriate in function parameters and return values. I also
tidy a few other cases where headers are included twice.
bfd/
* Makefile.am (bfdinclude_HEADERS): Add bfd_stdint.h.
(BFD_H_DEPS): Add include/diagnostics.h.
(LOCAL_H_DEPS): Add bfd_stdint.h.
* bfd-in.h: Include bfd_stdint.h.
* arc-plt.h: Don't include stdint.h.
* coff-rs6000.c: Likewise.
* coff64-rs6000.c: Likewise.
* elfxx-riscv.c: Likewise.
* cache.c: Don't include bfd_stdint.h.
* elf32-arm.c: Likewise.
* elf32-avr.c: Likewise.
* elf32-nds32.c: Likewise.
* elf32-rl78.c: Likewise.
* elf32-rx.c: Likewise.
* elf32-wasm32.c: Likewise.
* elf64-nfp.c: Likewise.
* elflink.c: Likewise.
* elfnn-aarch64.c: Likewise.
* elfnn-ia64.c: Likewise.
* elfxx-ia64.c: Likewise.
* elfxx-x86.h: Likewise.
* wasm-module.c: Likewise, and don't include sysdep.h twice.
* elf-nacl.h: Don't include bfd.h.
* mach-o.h: Likewise.
* elfxx-aarch64.c: Include bfd.h and elf-bfd.h.
* elfxx-aarch64.h: Don't include bfd.h, elf-bfd.h or stdint.h.
* mach-o-aarch64.c: Include mach-o.h later.
* mach-o-arm.c: Likewise.
* mach-o-i386.c: Likewise.
* mach-o-x86-64.c: Likewise.
* mach-o.c: Likewise.
* sysdep.h: Don't include ansidecl.h or sys/stat.h.
* Makefile.in: Regenerate.
* bfd-in2.h: Regenerate.
opcodes/
* arm-dis.c: Include bfd.h.
* aarch64-opc.c: Include bfd_stdint.h rather than stdint.h.
* csky-dis.c: Likewise.
* nds32-asm.c: Likewise.
* riscv-dis.c: Likewise.
* s12z-dis.c: Likewise.
* wasm32-dis.c: Likewise.
Diffstat (limited to 'opcodes')
-rw-r--r-- | opcodes/ChangeLog | 10 | ||||
-rw-r--r-- | opcodes/aarch64-opc.c | 2 | ||||
-rw-r--r-- | opcodes/arm-dis.c | 1 | ||||
-rw-r--r-- | opcodes/csky-dis.c | 2 | ||||
-rw-r--r-- | opcodes/nds32-asm.c | 2 | ||||
-rw-r--r-- | opcodes/riscv-dis.c | 2 | ||||
-rw-r--r-- | opcodes/s12z-dis.c | 2 | ||||
-rw-r--r-- | opcodes/wasm32-dis.c | 2 |
8 files changed, 17 insertions, 6 deletions
diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog index 880f863..8676f5f 100644 --- a/opcodes/ChangeLog +++ b/opcodes/ChangeLog @@ -1,3 +1,13 @@ +2018-12-18 Alan Modra <amodra@gmail.com> + + * arm-dis.c: Include bfd.h. + * aarch64-opc.c: Include bfd_stdint.h rather than stdint.h. + * csky-dis.c: Likewise. + * nds32-asm.c: Likewise. + * riscv-dis.c: Likewise. + * s12z-dis.c: Likewise. + * wasm32-dis.c: Likewise. + 2018-12-07 Jim Wilson <jimw@sifive.com> PR gas/23956 diff --git a/opcodes/aarch64-opc.c b/opcodes/aarch64-opc.c index b047d2f..72ff4d5 100644 --- a/opcodes/aarch64-opc.c +++ b/opcodes/aarch64-opc.c @@ -22,7 +22,7 @@ #include <assert.h> #include <stdlib.h> #include <stdio.h> -#include <stdint.h> +#include "bfd_stdint.h" #include <stdarg.h> #include <inttypes.h> diff --git a/opcodes/arm-dis.c b/opcodes/arm-dis.c index 8e6a37b..0061970 100644 --- a/opcodes/arm-dis.c +++ b/opcodes/arm-dis.c @@ -32,6 +32,7 @@ /* FIXME: This shouldn't be done here. */ #include "coff/internal.h" #include "libcoff.h" +#include "bfd.h" #include "elf-bfd.h" #include "elf/internal.h" #include "elf/arm.h" diff --git a/opcodes/csky-dis.c b/opcodes/csky-dis.c index 9c3495f..f57b9da 100644 --- a/opcodes/csky-dis.c +++ b/opcodes/csky-dis.c @@ -22,7 +22,7 @@ #include "sysdep.h" #include "config.h" #include <stdio.h> -#include <stdint.h> +#include "bfd_stdint.h" #include "disassemble.h" #include "elf-bfd.h" #include "opcode/csky.h" diff --git a/opcodes/nds32-asm.c b/opcodes/nds32-asm.c index f0dd326..94f0af2 100644 --- a/opcodes/nds32-asm.c +++ b/opcodes/nds32-asm.c @@ -22,7 +22,7 @@ #include "sysdep.h" -#include <stdint.h> +#include "bfd_stdint.h" #include <assert.h> #include "safe-ctype.h" diff --git a/opcodes/riscv-dis.c b/opcodes/riscv-dis.c index f1bbfdb..ab7575a 100644 --- a/opcodes/riscv-dis.c +++ b/opcodes/riscv-dis.c @@ -28,7 +28,7 @@ #include "elf-bfd.h" #include "elf/riscv.h" -#include <stdint.h> +#include "bfd_stdint.h" #include <ctype.h> struct riscv_private_data diff --git a/opcodes/s12z-dis.c b/opcodes/s12z-dis.c index 719f172..5d9307b 100644 --- a/opcodes/s12z-dis.c +++ b/opcodes/s12z-dis.c @@ -20,7 +20,7 @@ #include "sysdep.h" #include <stdio.h> -#include <stdint.h> +#include "bfd_stdint.h" #include <stdbool.h> #include <assert.h> diff --git a/opcodes/wasm32-dis.c b/opcodes/wasm32-dis.c index d6f1697..9b5dea4 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 <stdint.h> +#include "bfd_stdint.h" /* Type names for blocks and signatures. */ #define BLOCK_TYPE_NONE 0x40 |