[binutils-gdb] nds32: Fix a tautological comparison.
Kuan-Lin Chen
kuanlinchen@sourceware.org
Wed Sep 27 05:58:00 GMT 2017
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=cd28e7aaf35f7de5033ecd619b56064136bb190b
commit cd28e7aaf35f7de5033ecd619b56064136bb190b
Author: Kuan-Lin Chen <kuanlinchentw@gmail.com>
Date: Wed Sep 27 13:04:35 2017 +0800
nds32: Fix a tautological comparison.
Diff:
---
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;
More information about the Binutils-cvs
mailing list