summaryrefslogtreecommitdiffstats
path: root/bfd/elf32-hppa.c
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1999-07-12 10:30:21 +0000
committerIan Lance Taylor <ian@airs.com>1999-07-12 10:30:21 +0000
commit5f771d47c711c5292df87c35ac726c0ac18a3820 (patch)
tree6aefc3a1720a5ec0775090470f29c4d33d3ba6b2 /bfd/elf32-hppa.c
parent36823076169d65c84df46c8d03e30a3201fda0f9 (diff)
downloadppe42-binutils-5f771d47c711c5292df87c35ac726c0ac18a3820.tar.gz
ppe42-binutils-5f771d47c711c5292df87c35ac726c0ac18a3820.zip
* Many files: Changes to avoid gcc warnings: Add ATTRIBUTE_UNUSED
as appropriate. Use EMPTY_HOWTO as appropriate. Fill in structure initializations. Add casts. * reloc.c (EMPTY_HOWTO): Define. * bfd-in2.h: Rebuild. * coff-h8300.c (h8300_reloc16_extra_cases): Remove useless comparisons against 0. * elf32-sparc.c (elf32_sparc_merge_private_bfd_data): Change previous_ibfd_e_flags to unsigned long. * vms.h (struct vms_private_data_struct): Change section_count to unsigned. * vms-gsd.c (_bfd_vms_slurp_gsd): Change psect_idx to unsigned. (_bfd_vms_write_gsd): Change symnum to unsigned. * vms-hdr.c (_bfd_vms_write_hdr): Change symnum to unsigned. * vms-tir.c (etir_sta): Change psect to unsigned. (alloc_section): Change idx to unsigned. (tir_sta, tir_ctl): Change psect to unsigned. (_bfd_vms_write_tir): Change len and before to bfd_size_type. * vms.c (priv_section_count): Change to unsigned.
Diffstat (limited to 'bfd/elf32-hppa.c')
-rw-r--r--bfd/elf32-hppa.c19
1 files changed, 10 insertions, 9 deletions
diff --git a/bfd/elf32-hppa.c b/bfd/elf32-hppa.c
index 1877008a8a..1813b98bbc 100644
--- a/bfd/elf32-hppa.c
+++ b/bfd/elf32-hppa.c
@@ -533,7 +533,7 @@ elf32_hppa_bfd_final_link_relocate (howto, input_bfd, output_bfd,
addend, info, sym_sec, sym_name, is_local)
reloc_howto_type *howto;
bfd *input_bfd;
- bfd *output_bfd;
+ bfd *output_bfd ATTRIBUTE_UNUSED;
asection *input_section;
bfd_byte *contents;
bfd_vma offset;
@@ -796,7 +796,7 @@ do_basic_type_1:
static boolean
hppa_elf_is_local_label_name (abfd, name)
- bfd *abfd;
+ bfd *abfd ATTRIBUTE_UNUSED;
const char *name;
{
return (name[0] == 'L' && name[1] == '$');
@@ -807,11 +807,11 @@ hppa_elf_is_local_label_name (abfd, name)
static boolean
elf32_hppa_add_symbol_hook (abfd, info, sym, namep, flagsp, secp, valp)
- bfd *abfd;
- struct bfd_link_info *info;
- const Elf_Internal_Sym *sym;
- const char **namep;
- flagword *flagsp;
+ bfd *abfd ATTRIBUTE_UNUSED;
+ struct bfd_link_info *info ATTRIBUTE_UNUSED;
+ const Elf_Internal_Sym *sym ATTRIBUTE_UNUSED;
+ const char **namep ATTRIBUTE_UNUSED;
+ flagword *flagsp ATTRIBUTE_UNUSED;
asection **secp;
bfd_vma *valp;
{
@@ -825,7 +825,8 @@ elf32_hppa_add_symbol_hook (abfd, info, sym, namep, flagsp, secp, valp)
static void
elf32_hppa_name_of_stub (location, destination, stub_name)
- bfd_vma location, destination;
+ bfd_vma location ATTRIBUTE_UNUSED;
+ bfd_vma destination ATTRIBUTE_UNUSED;
char *stub_name;
{
strcpy (stub_name, "_____long_branch_stub_");
@@ -980,7 +981,7 @@ elf32_hppa_build_stubs (stub_bfd, info)
boolean
elf32_hppa_size_stubs (stub_bfd, output_bfd, link_info)
bfd *stub_bfd;
- bfd *output_bfd;
+ bfd *output_bfd ATTRIBUTE_UNUSED;
struct bfd_link_info *link_info;
{
bfd *input_bfd;
OpenPOWER on IntegriCloud