diff options
author | Nick Clifton <nickc@redhat.com> | 2001-09-21 14:25:09 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2001-09-21 14:25:09 +0000 |
commit | 1e738b87c87fe468ba6dd11f8e94e937d0ee665f (patch) | |
tree | 3b3e27dbacad4771a4eaae2c0a2b191c322a0670 /bfd/elfxx-ia64.c | |
parent | 2ca0d95257f38e932db032b87e17a4b538e47d49 (diff) | |
download | gdb-1e738b87c87fe468ba6dd11f8e94e937d0ee665f.zip gdb-1e738b87c87fe468ba6dd11f8e94e937d0ee665f.tar.gz gdb-1e738b87c87fe468ba6dd11f8e94e937d0ee665f.tar.bz2 |
Fix compile time warnings
Diffstat (limited to 'bfd/elfxx-ia64.c')
-rw-r--r-- | bfd/elfxx-ia64.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/bfd/elfxx-ia64.c b/bfd/elfxx-ia64.c index 0747b87..ef18ec3 100644 --- a/bfd/elfxx-ia64.c +++ b/bfd/elfxx-ia64.c @@ -2772,10 +2772,10 @@ elfNN_ia64_size_dynamic_sections (output_bfd, info) } static bfd_reloc_status_type -elfNN_ia64_install_value (abfd, hit_addr, val, r_type) +elfNN_ia64_install_value (abfd, hit_addr, v, r_type) bfd *abfd; bfd_byte *hit_addr; - bfd_vma val; + bfd_vma v; unsigned int r_type; { const struct ia64_operand *op; @@ -2784,6 +2784,11 @@ elfNN_ia64_install_value (abfd, hit_addr, val, r_type) enum ia64_opnd opnd; const char *err; size_t size = 8; +#ifdef BFD_HOST_U_64_BIT + BFD_HOST_U_64_BIT val = (BFD_HOST_U_64_BIT) v; +#else + bfd_vma val = v; +#endif opnd = IA64_OPND_NIL; switch (r_type) @@ -2945,7 +2950,7 @@ elfNN_ia64_install_value (abfd, hit_addr, val, r_type) insn = (dword >> shift) & 0x1ffffffffffLL; op = elf64_ia64_operands + opnd; - err = (*op->insert) (op, val, &insn); + err = (*op->insert) (op, val, (ia64_insn *)& insn); if (err) return bfd_reloc_overflow; |