diff options
author | Alan Modra <amodra@gmail.com> | 2017-05-18 14:47:40 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2017-05-18 14:59:33 +0930 |
commit | 535b785fb0c97220dea23a18f07baad6b5d77ae5 (patch) | |
tree | 53e9f73951284e4cdde0929415fd454b90ec4c6f /bfd/elflink.c | |
parent | 087ea22225435ab5800e6c29671acab40dc6ca82 (diff) | |
download | gdb-535b785fb0c97220dea23a18f07baad6b5d77ae5.zip gdb-535b785fb0c97220dea23a18f07baad6b5d77ae5.tar.gz gdb-535b785fb0c97220dea23a18f07baad6b5d77ae5.tar.bz2 |
Don't compare boolean values against TRUE or FALSE
bfd/
* arc-got.h: Don't compare boolean values against TRUE or FALSE.
* elf-m10300.c: Likewise.
* elf.c: Likewise.
* elf32-arc.c: Likewise.
* elf32-bfin.c: Likewise.
* elf32-m68k.c: Likewise.
* elf32-nds32.c: Likewise.
* elf32-tilepro.c: Likewise.
* elflink.c: Likewise.
* elfnn-aarch64.c: Likewise.
* elfnn-riscv.c: Likewise.
* elfxx-tilegx.c: Likewise.
* mach-o.c: Likewise.
* peXXigen.c: Likewise.
* vms-alpha.c: Likewise.
* vms-lib.c: Likewise.
opcodes/
* aarch64-asm.c: Don't compare boolean values against TRUE or FALSE.
* aarch64-dis.c: Likewise.
* aarch64-gen.c: Likewise.
* aarch64-opc.c: Likewise.
binutils/
* strings.c: Don't compare boolean values against TRUE or FALSE.
gas/
* config/tc-aarch64.c: Don't compare booleans against TRUE or FALSE.
* config/tc-hppa.c: Likewise.
* config/tc-mips.c: Likewise.
* config/tc-score7.c: Likewise.
ld/
* emultempl/elf32.em: Don't compare boolean values against TRUE or FALSE.
* emultempl/pe.em: Likewise.
* emultempl/pep.em: Likewise.
* emultempl/xtensaelf.em: Likewise.
Diffstat (limited to 'bfd/elflink.c')
-rw-r--r-- | bfd/elflink.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/bfd/elflink.c b/bfd/elflink.c index bc10428..387c6fd 100644 --- a/bfd/elflink.c +++ b/bfd/elflink.c @@ -8825,7 +8825,7 @@ elf_link_sort_relocs (bfd *abfd, struct bfd_link_info *info, asection **psec) else { /* Section size is only divisible by rela. */ - if (use_rela_initialised && (use_rela == FALSE)) + if (use_rela_initialised && !use_rela) { _bfd_error_handler (_("%B: Unable to sort relocs - " "they are in more than one size"), @@ -8843,7 +8843,7 @@ elf_link_sort_relocs (bfd *abfd, struct bfd_link_info *info, asection **psec) else if ((o->size % bed->s->sizeof_rel) == 0) { /* Section size is only divisible by rel. */ - if (use_rela_initialised && (use_rela == TRUE)) + if (use_rela_initialised && use_rela) { _bfd_error_handler (_("%B: Unable to sort relocs - " "they are in more than one size"), @@ -8882,7 +8882,7 @@ elf_link_sort_relocs (bfd *abfd, struct bfd_link_info *info, asection **psec) else { /* Section size is only divisible by rela. */ - if (use_rela_initialised && (use_rela == FALSE)) + if (use_rela_initialised && !use_rela) { _bfd_error_handler (_("%B: Unable to sort relocs - " "they are in more than one size"), @@ -8900,7 +8900,7 @@ elf_link_sort_relocs (bfd *abfd, struct bfd_link_info *info, asection **psec) else if ((o->size % bed->s->sizeof_rel) == 0) { /* Section size is only divisible by rel. */ - if (use_rela_initialised && (use_rela == TRUE)) + if (use_rela_initialised && use_rela) { _bfd_error_handler (_("%B: Unable to sort relocs - " "they are in more than one size"), @@ -12964,7 +12964,7 @@ _bfd_elf_gc_mark_extra_sections (struct bfd_link_info *info, else if (isec->gc_mark) some_kept = TRUE; - if (debug_frag_seen == FALSE + if (!debug_frag_seen && (isec->flags & SEC_DEBUGGING) && CONST_STRNEQ (isec->name, ".debug_line.")) debug_frag_seen = TRUE; |