aboutsummaryrefslogtreecommitdiff
path: root/ld/emultempl
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2017-05-18 14:47:40 +0930
committerAlan Modra <amodra@gmail.com>2017-05-18 14:59:33 +0930
commit535b785fb0c97220dea23a18f07baad6b5d77ae5 (patch)
tree53e9f73951284e4cdde0929415fd454b90ec4c6f /ld/emultempl
parent087ea22225435ab5800e6c29671acab40dc6ca82 (diff)
downloadgdb-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 'ld/emultempl')
-rw-r--r--ld/emultempl/elf32.em2
-rw-r--r--ld/emultempl/pe.em2
-rw-r--r--ld/emultempl/pep.em2
-rw-r--r--ld/emultempl/xtensaelf.em2
4 files changed, 4 insertions, 4 deletions
diff --git a/ld/emultempl/elf32.em b/ld/emultempl/elf32.em
index 3442c95..0260b7a 100644
--- a/ld/emultempl/elf32.em
+++ b/ld/emultempl/elf32.em
@@ -1538,7 +1538,7 @@ fragment <<EOF
}
if (link_info.eh_frame_hdr_type == COMPACT_EH_HDR)
- if (bfd_elf_parse_eh_frame_entries (NULL, &link_info) == FALSE)
+ if (!bfd_elf_parse_eh_frame_entries (NULL, &link_info))
einfo (_("%P%F: Failed to parse EH frame entries.\n"));
}
diff --git a/ld/emultempl/pe.em b/ld/emultempl/pe.em
index e835404..16d28e2 100644
--- a/ld/emultempl/pe.em
+++ b/ld/emultempl/pe.em
@@ -379,7 +379,7 @@ typedef struct
underscore. */
#define GET_INIT_SYMBOL_NAME(IDX) \
(init[(IDX)].symbol \
- + ((init[(IDX)].is_c_symbol == FALSE || (is_underscoring () != 0)) ? 0 : 1))
+ + ((!init[(IDX)].is_c_symbol || is_underscoring () != 0) ? 0 : 1))
/* Decorates the C visible symbol by underscore, if target requires. */
#define U(CSTR) \
diff --git a/ld/emultempl/pep.em b/ld/emultempl/pep.em
index 59812ce..420ffa8 100644
--- a/ld/emultempl/pep.em
+++ b/ld/emultempl/pep.em
@@ -350,7 +350,7 @@ typedef struct
#define GET_INIT_SYMBOL_NAME(IDX) \
(init[(IDX)].symbol \
- + ((init[(IDX)].is_c_symbol == FALSE || (is_underscoring () == 1)) ? 0 : 1))
+ + ((!init[(IDX)].is_c_symbol || is_underscoring () == 1) ? 0 : 1))
/* Decorates the C visible symbol by underscore, if target requires. */
#define U(CSTR) \
diff --git a/ld/emultempl/xtensaelf.em b/ld/emultempl/xtensaelf.em
index 080b66d..1447d52 100644
--- a/ld/emultempl/xtensaelf.em
+++ b/ld/emultempl/xtensaelf.em
@@ -1432,7 +1432,7 @@ xtensa_wild_group_interleave_callback (lang_statement_union_type *statement)
struct wildcard_list *l;
for (l = w->section_list; l != NULL; l = l->next)
{
- if (l->spec.sorted == TRUE)
+ if (l->spec.sorted != none)
{
no_reorder = TRUE;
break;