From 688c58f35962720830fd4058e449caa70e35416d Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Wed, 25 Aug 2004 23:40:56 +0000 Subject: [PATCH] bfd/ * elf32-m32r.c (m32r_elf_relocate_section): Don't compare with TRUE or FALSE. ld/ * ldlang.c (lang_init): Don't compare with TRUE. --- bfd/ChangeLog | 5 +++++ bfd/elf32-m32r.c | 6 +++--- ld/ChangeLog | 4 ++++ ld/ldlang.c | 4 ++-- 4 files changed, 14 insertions(+), 5 deletions(-) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 64ac064818..1cb24266d9 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2004-08-26 Alan Modra + + * elf32-m32r.c (m32r_elf_relocate_section): Don't compare with + TRUE or FALSE. + 2004-08-26 Alan Modra * elf32-i386.c (elf_i386_relocate_section): Tweak last change so diff --git a/bfd/elf32-m32r.c b/bfd/elf32-m32r.c index 4f0159f481..b7609e02ad 100644 --- a/bfd/elf32-m32r.c +++ b/bfd/elf32-m32r.c @@ -2627,7 +2627,7 @@ m32r_elf_relocate_section (output_bfd, info, input_bfd, input_section, howto = m32r_elf_howto_table + r_type; r_symndx = ELF32_R_SYM (rel->r_info); - if (info->relocatable && (use_rel == TRUE)) + if (info->relocatable && use_rel) { /* This is a relocatable link. We don't have to change anything, unless the reloc is against a section symbol, @@ -2703,7 +2703,7 @@ m32r_elf_relocate_section (output_bfd, info, input_bfd, input_section, sec = local_sections[r_symndx]; sym_name = ""; - if (use_rel == FALSE) + if (!use_rel) { relocation = _bfd_elf_rela_local_sym (output_bfd, sym, &sec, rel); addend = rel->r_addend; @@ -2730,7 +2730,7 @@ m32r_elf_relocate_section (output_bfd, info, input_bfd, input_section, else { /* External symbol. */ - if (info->relocatable && (use_rel == FALSE)) + if (info->relocatable && !use_rel) continue; h = sym_hashes[r_symndx - symtab_hdr->sh_info]; diff --git a/ld/ChangeLog b/ld/ChangeLog index 413deace7e..a8ec6506a5 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,7 @@ +2004-08-26 Alan Modra + + * ldlang.c (lang_init): Don't compare with TRUE. + 2004-08-25 Dmitry Diky * emulparams/msp430all.sh: Fix RAM sizes for all targets. diff --git a/ld/ldlang.c b/ld/ldlang.c index fc95ee8377..5988635e42 100644 --- a/ld/ldlang.c +++ b/ld/ldlang.c @@ -506,8 +506,8 @@ lang_init (void) simpler to re-use working machinery than using a linked list in terms of code-complexity here in ld, besides the initialization which just looks like other code here. */ - if (bfd_hash_table_init_n (&lang_definedness_table, - lang_definedness_newfunc, 3) != TRUE) + if (!bfd_hash_table_init_n (&lang_definedness_table, + lang_definedness_newfunc, 3)) einfo (_("%P%F: out of memory during initialization")); /* Callers of exp_fold_tree need to increment this. */