summaryrefslogtreecommitdiff
path: root/opcodes
diff options
context:
space:
mode:
Diffstat (limited to 'opcodes')
-rw-r--r--opcodes/ChangeLog9
-rw-r--r--opcodes/arc-dis.c6
-rw-r--r--opcodes/arc-ext.c6
-rw-r--r--opcodes/arm-dis.c2
4 files changed, 16 insertions, 7 deletions
diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog
index c3213bb5bc..7a786ff147 100644
--- a/opcodes/ChangeLog
+++ b/opcodes/ChangeLog
@@ -1,3 +1,12 @@
+2009-09-25 Martin Thuresson <martint@google.com>
+
+ Update soruces to make arc and arm targets compile cleanly with
+ -Wc++-compat:
+ * arc-dis.c Fix casts.
+ * arc-ext.c: Add casts.
+ * arm-dis.c (enum opcode_sentinel_enum): Gave name to anonymous
+ enum.
+
2009-09-24 H.J. Lu <hongjiu.lu@intel.com>
* i386-gen.c (opcode_modifiers): Remove Vex256.
diff --git a/opcodes/arc-dis.c b/opcodes/arc-dis.c
index b5eb8a58d0..ba674549e0 100644
--- a/opcodes/arc-dis.c
+++ b/opcodes/arc-dis.c
@@ -1,5 +1,5 @@
/* Instruction printing code for the ARC.
- Copyright 1994, 1995, 1997, 1998, 2000, 2001, 2002, 2005, 2007
+ Copyright 1994, 1995, 1997, 1998, 2000, 2001, 2002, 2005, 2007, 2009
Free Software Foundation, Inc.
Contributed by Doug Evans (dje@cygnus.com).
@@ -1201,7 +1201,7 @@ decodeInstr (bfd_vma address, /* Address of this instruction. */
s.instName = _instName;
/* Disassemble. */
- bytes = dsmOneArcInst (address, (void *)& s);
+ bytes = dsmOneArcInst (address, & s);
/* Display the disassembly instruction. */
(*func) (stream, "%08lx ", s.words[0]);
@@ -1228,6 +1228,6 @@ disassembler_ftype
arc_get_disassembler (void *ptr)
{
if (ptr)
- build_ARC_extmap (ptr);
+ build_ARC_extmap ((struct bfd *) ptr);
return decodeInstr;
}
diff --git a/opcodes/arc-ext.c b/opcodes/arc-ext.c
index 1e6c1f8a7f..376cd0316e 100644
--- a/opcodes/arc-ext.c
+++ b/opcodes/arc-ext.c
@@ -1,5 +1,5 @@
/* ARC target-dependent stuff. Extension structure access functions
- Copyright 1995, 1997, 2000, 2001, 2004, 2005, 2007
+ Copyright 1995, 1997, 2000, 2001, 2004, 2005, 2007, 2009
Free Software Foundation, Inc.
This file is part of libopcodes.
@@ -148,8 +148,8 @@ cleanup_ext_map(void)
int
arcExtMap_add(void *base, unsigned long length)
{
- unsigned char *block = base;
- unsigned char *p = block;
+ unsigned char *block = (unsigned char *) base;
+ unsigned char *p = (unsigned char *) block;
/* Clean up and reset everything if needed. */
cleanup_ext_map();
diff --git a/opcodes/arm-dis.c b/opcodes/arm-dis.c
index ef1f03f2ad..3cbdf9e04b 100644
--- a/opcodes/arm-dis.c
+++ b/opcodes/arm-dis.c
@@ -106,7 +106,7 @@ struct opcode16
(print "32" when 0)
%r print register offset address for wldt/wstr instruction. */
-enum
+enum opcode_sentinel_enum
{
SENTINEL_IWMMXT_START = 1,
SENTINEL_IWMMXT_END,