This is the mail archive of the
binutils-cvs@sourceware.org
mailing list for the binutils project.
[binutils-gdb] BFD/PA: Remove ATTRIBUTE_UNUSED from `elf_hppa_info_to_howto_rel'
- From: Maciej W.Rozycki <macro at sourceware dot org>
- To: bfd-cvs at sourceware dot org
- Date: 28 Mar 2018 21:43:25 -0000
- Subject: [binutils-gdb] BFD/PA: Remove ATTRIBUTE_UNUSED from `elf_hppa_info_to_howto_rel'
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=8b6a949ae55d3adbade84af4e11415d764647fc9
commit 8b6a949ae55d3adbade84af4e11415d764647fc9
Author: Maciej W. Rozycki <macro@mips.com>
Date: Wed Mar 28 22:42:17 2018 +0100
BFD/PA: Remove ATTRIBUTE_UNUSED from `elf_hppa_info_to_howto_rel'
Remove ATTRIBUTE_UNUSED annotation from the `abfd' parameter in
`elf_hppa_info_to_howto' now that commit f3185997ac09 ("PR 22875: Stop
strip corrupting unknown relocs"),
<https://sourceware.org/ml/binutils/2018-02/msg00445.html>, made it
used.
bfd/
* elf-hppa.h (elf_hppa_info_to_howto_rel): Remove
ATTRIBUTE_UNUSED from `abfd'.
Diff:
---
bfd/ChangeLog | 5 +++++
bfd/elf-hppa.h | 2 +-
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index ca8ea9f..2154559 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,5 +1,10 @@
2018-03-28 Maciej W. Rozycki <macro@mips.com>
+ * elf-hppa.h (elf_hppa_info_to_howto_rel): Remove
+ ATTRIBUTE_UNUSED from `abfd'.
+
+2018-03-28 Maciej W. Rozycki <macro@mips.com>
+
* elf-hppa.h (elf_hppa_info_to_howto_rel): Correct
`_bfd_error_handler' call formatting.
diff --git a/bfd/elf-hppa.h b/bfd/elf-hppa.h
index a498c59..59c0c4f 100644
--- a/bfd/elf-hppa.h
+++ b/bfd/elf-hppa.h
@@ -1021,7 +1021,7 @@ _bfd_elf_hppa_gen_reloc_type (bfd *abfd,
/* Translate from an elf into field into a howto relocation pointer. */
static bfd_boolean
-elf_hppa_info_to_howto (bfd *abfd ATTRIBUTE_UNUSED,
+elf_hppa_info_to_howto (bfd *abfd,
arelent *bfd_reloc,
Elf_Internal_Rela *elf_reloc)
{