From: H.J. Lu Date: Wed, 24 Jun 2015 21:12:15 +0000 (-0700) Subject: Silence older GCC warning X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7cc152be3e6f24f2bdb9740157426dc115cdaa54;p=binutils-gdb.git Silence older GCC warning * elf64-x86-64.c (elf_x86_64_convert_mov_to_lea): Silence older GCC warning. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 49303b3e1bb..97c1431361b 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2015-06-24 H.J. Lu + + * elf64-x86-64.c (elf_x86_64_convert_mov_to_lea): Silence older + GCC warning. + 2015-06-24 H.J. Lu * elf32-i386.c (elf_i386_allocate_dynrelocs): Always allocate diff --git a/bfd/elf64-x86-64.c b/bfd/elf64-x86-64.c index fb22602ed56..3022debb99d 100644 --- a/bfd/elf64-x86-64.c +++ b/bfd/elf64-x86-64.c @@ -2972,6 +2972,9 @@ elf_x86_64_convert_mov_to_lea (bfd *abfd, asection *sec, { Elf_Internal_Sym *isym; + /* Silence older GCC warning. */ + h = NULL; + isym = bfd_sym_from_r_symndx (&htab->sym_cache, abfd, r_symndx);