aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf32-arm.h
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
commite049a0de5aa29277c6e42046a9fc960cce1ff6ed (patch)
treef864ee52079ac788bb502a42e361f8794a51aa13 /bfd/elf32-arm.h
parent5d341b0e2a8e31c93bc32ce3d4ed447fcfb34c6f (diff)
downloadgdb-e049a0de5aa29277c6e42046a9fc960cce1ff6ed.zip
gdb-e049a0de5aa29277c6e42046a9fc960cce1ff6ed.tar.gz
gdb-e049a0de5aa29277c6e42046a9fc960cce1ff6ed.tar.bz2
* 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-arm.h')
-rw-r--r--bfd/elf32-arm.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/bfd/elf32-arm.h b/bfd/elf32-arm.h
index ce2eea7..d83ae77 100644
--- a/bfd/elf32-arm.h
+++ b/bfd/elf32-arm.h
@@ -625,7 +625,6 @@ bfd_elf32_arm_process_before_allocation (abfd, link_info, no_pipeline_knowledge)
{
long r_type;
unsigned long r_index;
- unsigned char code;
struct elf_link_hash_entry *h;
@@ -1301,7 +1300,6 @@ elf32_arm_final_link_relocate (howto, input_bfd, output_bfd,
boolean overflow = false;
bfd_vma upper_insn = bfd_get_16 (input_bfd, hit_data);
bfd_vma lower_insn = bfd_get_16 (input_bfd, hit_data + 2);
- bfd_vma src_mask = 0x007FFFFE;
bfd_signed_vma reloc_signed_max = (1 << (howto->bitsize - 1)) - 1;
bfd_signed_vma reloc_signed_min = ~ reloc_signed_max;
bfd_vma check;
@@ -2068,6 +2066,9 @@ elf32_arm_gc_mark_hook (abfd, info, rel, h, sym)
case bfd_link_hash_common:
return h->root.u.c.p->section;
+
+ default:
+ break;
}
}
}