This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[PATCH] nds32: Fix a tautological comparison.
- From: Kuan-Lin Chen <kuanlinchentw at gmail dot com>
- To: "binutils at sourceware dot org Development" <binutils at sourceware dot org>
- Date: Wed, 27 Sep 2017 13:57:34 +0800
- Subject: [PATCH] nds32: Fix a tautological comparison.
- Authentication-results: sourceware.org; auth=none
Committed the following patch to fix a tautological comparison.
---
bfd/ChangeLog | 5 +++++
bfd/elf32-nds32.c | 2 +-
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index aa55ed5..1a4bde1 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,8 @@
+2017-09-27 Kuan-Lin Chen <kuanlinchentw@gmail.com>
+
+ * elf32-nds32.c (nds32_elf_relax_section): Fix a tautological
+ comparison.
+
2017-09-26 H.J. Lu <hongjiu.lu@intel.com>
PR ld/22199
diff --git a/bfd/elf32-nds32.c b/bfd/elf32-nds32.c
index 0b0de62..ddf1465 100644
--- a/bfd/elf32-nds32.c
+++ b/bfd/elf32-nds32.c
@@ -11909,7 +11909,7 @@ nds32_elf_relax_section (bfd *abfd, asection *sec,
* no reloc entry. */
if (bfd_link_relocatable (link_info)
|| (sec->flags & SEC_RELOC) == 0
- || (sec->flags & SEC_EXCLUDE) == 1
+ || (sec->flags & SEC_EXCLUDE) != 0
|| (sec->flags & SEC_CODE) == 0
|| sec->size == 0)
return TRUE;
--
--
Best regards,
Kuan-Lin Chen.
kuanlinchentw@gmail.com