PR25100, Compile fails in elf64-ppc.c because of single equal sign instead of double equal for comparison

PR 25100
	* elf64-ppc.c (sfpr_define): Delete dead code that triggered a warning.
This commit is contained in:
Alan Modra 2019-10-15 11:58:11 +10:30
parent ed481f9799
commit 779f2ae733
2 changed files with 6 additions and 3 deletions

View 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

View 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;