summaryrefslogtreecommitdiff
path: root/bfd/elf32-mcore.c
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1999-07-12 07:35:20 +0000
committerIan Lance Taylor <ian@airs.com>1999-07-12 07:35:20 +0000
commit163d47c052491359c5908090aad5c32a7390c0af (patch)
tree69d576a4f631dbb7152d738b9c3e4eff3686038d /bfd/elf32-mcore.c
parent84f09dc2da0521c49c47f9fbd40a817e992dbf48 (diff)
downloadbinutils-redhat-163d47c052491359c5908090aad5c32a7390c0af.tar.gz
* Many files: Changes to avoid gcc warnings: Remove unused local
variables. Add default case to enum switches. * coff-arm.c (bfd_arm_allocate_interworking_sections): Only compile if not COFF_IMAGE_WITH_PE. (record_arm_to_thumb_glue, record_thumb_to_arm_glue): Likewise. (bfd_arm_get_bfd_for_interworking): Likewise. (bfd_arm_process_before_allocation): Likewise. * epoc-pei-arm.c: Don't rename bfd_arm functions. * pei-arm.c: Likewise. * elf32-mips.c (mips_elf_link_hash_table_create): Don't declare. (MIPS_ELF_ADD_DYNAMIC_ENTRY): Correct last change. (mips_elf_got16_entry): Put parens around & in body of ==. (mips_elf_calculate_relocation): Correct test for empty string. * vms-gsd.c: Use _bfd_error_handler rather than fprintf to stderr. * vms-misc.c (_bfd_vms_length_hash_symbol): Correct sprintf format.
Diffstat (limited to 'bfd/elf32-mcore.c')
-rw-r--r--bfd/elf32-mcore.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/bfd/elf32-mcore.c b/bfd/elf32-mcore.c
index fe0ddc5dcf..b54974300c 100644
--- a/bfd/elf32-mcore.c
+++ b/bfd/elf32-mcore.c
@@ -320,7 +320,6 @@ mcore_elf_merge_private_bfd_data (ibfd, obfd)
{
flagword old_flags;
flagword new_flags;
- boolean error;
/* Check if we have the same endianess */
if ( ibfd->xvec->byteorder != obfd->xvec->byteorder
@@ -426,7 +425,6 @@ mcore_elf_relocate_section (output_bfd, info, input_bfd, input_section,
Elf_Internal_Rela * rel = relocs;
Elf_Internal_Rela * relend = relocs + input_section->reloc_count;
boolean ret = true;
- long insn;
#ifdef DEBUG
fprintf (stderr,
@@ -643,6 +641,9 @@ mcore_elf_gc_mark_hook (abfd, info, rel, h, sym)
case bfd_link_hash_common:
return h->root.u.c.p->section;
+
+ default:
+ break;
}
}
}