aboutsummaryrefslogtreecommitdiff
path: root/bfd/elfxx-ia64.c
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@linux-m68k.org>2005-03-18 21:31:31 +0000
committerAndreas Schwab <schwab@linux-m68k.org>2005-03-18 21:31:31 +0000
commitb4677f0316a98e86d05f75814aade7bee324fae1 (patch)
treea1d7853c40a611c17f4b1df49c89e8c5353be784 /bfd/elfxx-ia64.c
parent93ad78a72d4752c44d41ec4a834c1d9aa4f9bb2e (diff)
downloadgdb-b4677f0316a98e86d05f75814aade7bee324fae1.zip
gdb-b4677f0316a98e86d05f75814aade7bee324fae1.tar.gz
gdb-b4677f0316a98e86d05f75814aade7bee324fae1.tar.bz2
* elfxx-ia64.c (elfNN_ia64_install_value): Change type of insn
from bfd_vma to ia64_insn, remove broken cast.
Diffstat (limited to 'bfd/elfxx-ia64.c')
-rw-r--r--bfd/elfxx-ia64.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/bfd/elfxx-ia64.c b/bfd/elfxx-ia64.c
index a34fb80..f94182d 100644
--- a/bfd/elfxx-ia64.c
+++ b/bfd/elfxx-ia64.c
@@ -3119,7 +3119,8 @@ elfNN_ia64_install_value (hit_addr, v, r_type)
{
const struct ia64_operand *op;
int bigendian = 0, shift = 0;
- bfd_vma t0, t1, insn, dword;
+ bfd_vma t0, t1, dword;
+ ia64_insn insn;
enum ia64_opnd opnd;
const char *err;
size_t size = 8;
@@ -3308,7 +3309,7 @@ elfNN_ia64_install_value (hit_addr, v, r_type)
insn = (dword >> shift) & 0x1ffffffffffLL;
op = elf64_ia64_operands + opnd;
- err = (*op->insert) (op, val, (ia64_insn *)& insn);
+ err = (*op->insert) (op, val, &insn);
if (err)
return bfd_reloc_overflow;