diff options
author | Daniel Jacobowitz <drow@false.org> | 2005-10-06 19:21:14 +0000 |
---|---|---|
committer | Daniel Jacobowitz <drow@false.org> | 2005-10-06 19:21:14 +0000 |
commit | 6edfbbad08647691263c23151a75601a6c30d42f (patch) | |
tree | d5049f0ee38cb9c1e07e0ca25db9e50eacf998a2 /opcodes/ppc-dis.c | |
parent | 5ae7275838181dafc7e8fab3fee127c7064d6bf8 (diff) | |
download | gdb-6edfbbad08647691263c23151a75601a6c30d42f.zip gdb-6edfbbad08647691263c23151a75601a6c30d42f.tar.gz gdb-6edfbbad08647691263c23151a75601a6c30d42f.tar.bz2 |
bfd/
* elf32-arm.c (elf32_arm_check_relocs): Avoid aliasing warnings from
GCC.
(elf32_arm_size_dynamic_sections): Likewise.
* ecofflink.c (bfd_ecoff_debug_one_external): Likewise.
* elf32-hppa.c (elf32_hppa_check_relocs): Likewise.
* elf32-m32r.c (m32r_elf_check_relocs): Likewise.
* elf32-m68k.c (elf_m68k_check_relocs): Likewise.
* elf32-ppc.c (ppc_elf_check_relocs): Likewise.
* elf32-s390.c (elf_s390_check_relocs): Likewise.
(elf_s390_size_dynamic_sections): Likewise.
* elf32-sh.c (sh_elf_check_relocs): Likewise.
* elf64-ppc.c (ppc64_elf_check_relocs, dec_dynrel_count)
(ppc64_elf_size_dynamic_sections): Likewise.
* elf64-s390.c (elf_s390_check_relocs): Likewise.
(elf_s390_size_dynamic_sections): Likewise.
* elfxx-mips.c (_bfd_mips_elf_finish_dynamic_sections): Likewise.
* elfxx-sparc.c (_bfd_sparc_elf_check_relocs): Likewise.
(_bfd_sparc_elf_size_dynamic_sections): Likewise.
* ieee.c (ieee_slurp_section_data): Likewise.
* oasys.c (oasys_slurp_section_data): Likewise.
opcodes/
* ppc-dis.c (struct dis_private): Remove.
(powerpc_dialect): Avoid aliasing warnings.
(print_insn_big_powerpc, print_insn_little_powerpc): Likewise.
Diffstat (limited to 'opcodes/ppc-dis.c')
-rw-r--r-- | opcodes/ppc-dis.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/opcodes/ppc-dis.c b/opcodes/ppc-dis.c index 19efc14..35875d1 100644 --- a/opcodes/ppc-dis.c +++ b/opcodes/ppc-dis.c @@ -32,11 +32,6 @@ Software Foundation, 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, US static int print_insn_powerpc (bfd_vma, struct disassemble_info *, int, int); -struct dis_private { - /* Stash the result of parsing disassembler_options here. */ - int dialect; -}; - /* Determine which set of machines to disassemble for. PPC403/601 or BookE. For convenience, also disassemble instructions supported by the AltiVec vector unit. */ @@ -90,7 +85,7 @@ powerpc_dialect (struct disassemble_info *info) dialect |= PPC_OPCODE_64; } - ((struct dis_private *) &info->private_data)->dialect = dialect; + info->private_data = (char *) 0 + dialect; return dialect; } @@ -99,7 +94,7 @@ 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; + int dialect = (char *) info->private_data - (char *) 0; return print_insn_powerpc (memaddr, info, 1, dialect); } @@ -108,7 +103,7 @@ 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; + int dialect = (char *) info->private_data - (char *) 0; return print_insn_powerpc (memaddr, info, 0, dialect); } |