Remove bogus ATTRIBUTE_UNUSED

* elf32-ppc.c: Remove ATTRIBUTE_UNUSED throughout when function
	parameter is in fact used.  Whitespace fixes.
	* elf64-ppc.c: Likewise.
This commit is contained in:
Alan Modra
2017-03-11 20:56:51 +10:30
parent bb4287c562
commit 4aef764338
3 changed files with 22 additions and 16 deletions

@ -1,3 +1,9 @@
2017-03-11 Alan Modra <amodra@gmail.com>
* elf32-ppc.c: Remove ATTRIBUTE_UNUSED throughout when function
parameter is in fact used. Whitespace fixes.
* elf64-ppc.c: Likewise.
2017-03-09 Sam Thursfield <sam.thursfield@codethink.co.uk> 2017-03-09 Sam Thursfield <sam.thursfield@codethink.co.uk>
* rs6000-core.c (CORE_NEW): Simplify macro when * rs6000-core.c (CORE_NEW): Simplify macro when

@ -2045,7 +2045,7 @@ ppc_elf_reloc_name_lookup (bfd *abfd ATTRIBUTE_UNUSED,
/* Set the howto pointer for a PowerPC ELF reloc. */ /* Set the howto pointer for a PowerPC ELF reloc. */
static void static void
ppc_elf_info_to_howto (bfd *abfd ATTRIBUTE_UNUSED, ppc_elf_info_to_howto (bfd *abfd,
arelent *cache_ptr, arelent *cache_ptr,
Elf_Internal_Rela *dst) Elf_Internal_Rela *dst)
{ {
@ -2082,10 +2082,10 @@ ppc_elf_info_to_howto (bfd *abfd ATTRIBUTE_UNUSED,
/* Handle the R_PPC_ADDR16_HA and R_PPC_REL16_HA relocs. */ /* Handle the R_PPC_ADDR16_HA and R_PPC_REL16_HA relocs. */
static bfd_reloc_status_type static bfd_reloc_status_type
ppc_elf_addr16_ha_reloc (bfd *abfd ATTRIBUTE_UNUSED, ppc_elf_addr16_ha_reloc (bfd *abfd,
arelent *reloc_entry, arelent *reloc_entry,
asymbol *symbol, asymbol *symbol,
void *data ATTRIBUTE_UNUSED, void *data,
asection *input_section, asection *input_section,
bfd *output_bfd, bfd *output_bfd,
char **error_message ATTRIBUTE_UNUSED) char **error_message ATTRIBUTE_UNUSED)
@ -2648,7 +2648,7 @@ static struct bfd_elf_special_section ppc_alt_plt =
{ STRING_COMMA_LEN (".plt"), 0, SHT_PROGBITS, SHF_ALLOC }; { STRING_COMMA_LEN (".plt"), 0, SHT_PROGBITS, SHF_ALLOC };
static const struct bfd_elf_special_section * static const struct bfd_elf_special_section *
ppc_elf_get_sec_type_attr (bfd *abfd ATTRIBUTE_UNUSED, asection *sec) ppc_elf_get_sec_type_attr (bfd *abfd, asection *sec)
{ {
const struct bfd_elf_special_section *ssect; const struct bfd_elf_special_section *ssect;
@ -10990,7 +10990,7 @@ ppc_elf_finish_dynamic_sections (bfd *output_bfd,
/* VxWorks uses the elf default section flags for .plt. */ /* VxWorks uses the elf default section flags for .plt. */
static const struct bfd_elf_special_section * static const struct bfd_elf_special_section *
ppc_elf_vxworks_get_sec_type_attr (bfd *abfd ATTRIBUTE_UNUSED, asection *sec) ppc_elf_vxworks_get_sec_type_attr (bfd *abfd, asection *sec)
{ {
if (sec->name == NULL) if (sec->name == NULL)
return NULL; return NULL;
@ -11027,8 +11027,8 @@ static bfd_boolean
ppc_elf_vxworks_add_symbol_hook (bfd *abfd, ppc_elf_vxworks_add_symbol_hook (bfd *abfd,
struct bfd_link_info *info, struct bfd_link_info *info,
Elf_Internal_Sym *sym, Elf_Internal_Sym *sym,
const char **namep ATTRIBUTE_UNUSED, const char **namep,
flagword *flagsp ATTRIBUTE_UNUSED, flagword *flagsp,
asection **secp, asection **secp,
bfd_vma *valp) bfd_vma *valp)
{ {

@ -2499,7 +2499,7 @@ ppc64_elf_reloc_name_lookup (bfd *abfd ATTRIBUTE_UNUSED,
/* Set the howto pointer for a PowerPC ELF reloc. */ /* Set the howto pointer for a PowerPC ELF reloc. */
static void static void
ppc64_elf_info_to_howto (bfd *abfd ATTRIBUTE_UNUSED, arelent *cache_ptr, ppc64_elf_info_to_howto (bfd *abfd, arelent *cache_ptr,
Elf_Internal_Rela *dst) Elf_Internal_Rela *dst)
{ {
unsigned int type; unsigned int type;
@ -15400,7 +15400,7 @@ static bfd_boolean
ppc64_elf_finish_dynamic_symbol (bfd *output_bfd, ppc64_elf_finish_dynamic_symbol (bfd *output_bfd,
struct bfd_link_info *info, struct bfd_link_info *info,
struct elf_link_hash_entry *h, struct elf_link_hash_entry *h,
Elf_Internal_Sym *sym ATTRIBUTE_UNUSED) Elf_Internal_Sym *sym)
{ {
struct ppc_link_hash_table *htab; struct ppc_link_hash_table *htab;
struct plt_entry *ent; struct plt_entry *ent;