diff options
author | John Birrell <jb@FreeBSD.org> | 2007-11-23 23:56:03 +0000 |
---|---|---|
committer | John Birrell <jb@FreeBSD.org> | 2007-11-23 23:56:03 +0000 |
commit | 962e1ce30ffab86b12d13359fea36a0857d6852a (patch) | |
tree | 25a0e948f32bf913b80de263759c84bf0901794a /contrib/binutils/opcodes/ppc-dis.c | |
parent | 5f3a6945d4d9f0f1ed764baab8dfb0c6a77e971e (diff) | |
download | src-962e1ce30ffab86b12d13359fea36a0857d6852a.tar.gz src-962e1ce30ffab86b12d13359fea36a0857d6852a.zip |
Fix strict alias warnings.
Notes
Notes:
svn path=/head/; revision=173874
Diffstat (limited to 'contrib/binutils/opcodes/ppc-dis.c')
-rw-r--r-- | contrib/binutils/opcodes/ppc-dis.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/contrib/binutils/opcodes/ppc-dis.c b/contrib/binutils/opcodes/ppc-dis.c index 4d48b9d4b70a..9dc586de8c4a 100644 --- a/contrib/binutils/opcodes/ppc-dis.c +++ b/contrib/binutils/opcodes/ppc-dis.c @@ -1,3 +1,4 @@ +/* $FreeBSD$ */ /* ppc-dis.c -- Disassemble PowerPC instructions Copyright 1994, 1995, 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc. @@ -45,6 +46,7 @@ static int powerpc_dialect (struct disassemble_info *info) { int dialect = PPC_OPCODE_PPC | PPC_OPCODE_ALTIVEC; + void *pd = &info->private_data; if (BFD_DEFAULT_TARGET_SIZE == 64) dialect |= PPC_OPCODE_64; @@ -91,7 +93,7 @@ powerpc_dialect (struct disassemble_info *info) dialect |= PPC_OPCODE_64; } - ((struct dis_private *) &info->private_data)->dialect = dialect; + ((struct dis_private *) pd)->dialect = dialect; return dialect; } @@ -100,7 +102,8 @@ powerpc_dialect (struct disassemble_info *info) int print_insn_big_powerpc (bfd_vma memaddr, struct disassemble_info *info) { - int dialect = ((struct dis_private *) &info->private_data)->dialect; + void *pd = &info->private_data; + int dialect = ((struct dis_private *) pd)->dialect; return print_insn_powerpc (memaddr, info, 1, dialect); } @@ -109,7 +112,8 @@ print_insn_big_powerpc (bfd_vma memaddr, struct disassemble_info *info) int print_insn_little_powerpc (bfd_vma memaddr, struct disassemble_info *info) { - int dialect = ((struct dis_private *) &info->private_data)->dialect; + void *pd = &info->private_data; + int dialect = ((struct dis_private *) pd)->dialect; return print_insn_powerpc (memaddr, info, 0, dialect); } |