aboutsummaryrefslogtreecommitdiff
path: root/bfd/pe-aarch64.c
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2023-07-30 10:26:07 -0600
committerTom Tromey <tromey@adacore.com>2023-08-03 07:39:15 -0600
commitf559e52a8e79585e0b13156e949a7fd46060a714 (patch)
tree9ccc07385f1c6e11b233b4b711f8cbd37ddf8d45 /bfd/pe-aarch64.c
parentf8c4789c7f4efa3726ec39256b9860e4df9f8177 (diff)
downloadgdb-f559e52a8e79585e0b13156e949a7fd46060a714.zip
gdb-f559e52a8e79585e0b13156e949a7fd46060a714.tar.gz
gdb-f559e52a8e79585e0b13156e949a7fd46060a714.tar.bz2
Remove PEI_HEADERS define
I noticed a few files double-included libcoff.h, and digging deeper I found that the PEI_HEADERS define is a sort of external include guard. This patch adds include guards to the few files in include/coff that were missing one, and then removes the PEI_HEADERS workaround and the redundant includes. I didn't see anything in these files that indicated that double-inclusion would be useful, so it seems to me that this approach is ok. Tested by rebuilding with --enable-targets=all. 2023-08-02 Tom Tromey <tromey@adacore.com> * pei-x86_64.c (PEI_HEADERS): Do not define. * pei-loongarch64.c (PEI_HEADERS): Do not define. * pei-aarch64.c (PEI_HEADERS): Do not define. * pe-x86_64.c (PEI_HEADERS): Do not define. * pe-aarch64.c (PEI_HEADERS): Do not define. * libpei.h (_LIBPEI_H): Add include guard. * coff-x86_64.c (PEI_HEADERS): Do not check. * coff-loongarch64.c (PEI_HEADERS): Do not check. * coff-aarch64.c (PEI_HEADERS): Do not check. include/ChangeLog 2023-08-02 Tom Tromey <tromey@adacore.com> * coff/x86_64.h (COFF_X86_64_H): Add include guard. * coff/loongarch64.h (COFF_LOONGARCH64_H): Add include guard. * coff/aarch64.h (COFF_AARCH64_H): Add include guard.
Diffstat (limited to 'bfd/pe-aarch64.c')
-rw-r--r--bfd/pe-aarch64.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/bfd/pe-aarch64.c b/bfd/pe-aarch64.c
index 9abc1cc..2d5a7e2 100644
--- a/bfd/pe-aarch64.c
+++ b/bfd/pe-aarch64.c
@@ -55,7 +55,6 @@
{ COFF_SECTION_NAME_PARTIAL_MATCH (".gnu.linkonce.wi."), \
COFF_ALIGNMENT_FIELD_EMPTY, COFF_ALIGNMENT_FIELD_EMPTY, 0 }
-#define PEI_HEADERS
#include "sysdep.h"
#include "bfd.h"
#include "libbfd.h"