PR25100, Compile fails in elf64-ppc.c because of single equal sign instead of double...
authorAlan Modra <amodra@gmail.com>
Tue, 15 Oct 2019 01:28:11 +0000 (11:58 +1030)
committerAlan Modra <amodra@gmail.com>
Tue, 15 Oct 2019 05:31:05 +0000 (16:01 +1030)
PR 25100
* elf64-ppc.c (sfpr_define): Delete dead code that triggered a warning.

bfd/ChangeLog
bfd/elf64-ppc.c

index 4d8db193f2e61bed7df068d82cdb2608d016f6c5..40ddfa14d5e01825b6b3ce5433ef57fa8ebf3d60 100644 (file)
@@ -1,3 +1,8 @@
+2019-10-15  Alan Modra  <amodra@gmail.com>
+
+       PR 25100
+       * elf64-ppc.c (sfpr_define): Delete dead code that triggered a warning.
+
 2019-10-15  Alan Modra  <amodra@gmail.com>
 
        * bfd.c (bfd_check_compression_header): Check for powers of two
index 2731e78618dd6110cbd9401c31cc0adb9300a4a0..4ece6fbde0195c5e4d9ebb702174bb2e53c421c6 100644 (file)
@@ -5837,9 +5837,7 @@ sfpr_define (struct bfd_link_info *info,
              s = elf_link_hash_lookup (&htab->elf, buf, TRUE, TRUE, FALSE);
              if (s == NULL)
                return FALSE;
-             if (s->root.type == bfd_link_hash_new
-                 || (s->root.type = bfd_link_hash_defined
-                     && s->root.u.def.section == stub_sec))
+             if (s->root.type == bfd_link_hash_new)
                {
                  s->root.type = bfd_link_hash_defined;
                  s->root.u.def.section = stub_sec;