aboutsummaryrefslogtreecommitdiff
path: root/opcodes/arc-ext.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2005-02-22 13:01:53 +0000
committerAlan Modra <amodra@gmail.com>2005-02-22 13:01:53 +0000
commit53c9ebc5f114920f04b2e64f03494c895aa361de (patch)
tree2e1eabac13af4689404cc842b27fdf8780e84f32 /opcodes/arc-ext.c
parent5718918d7aeb65ee118cd7f2cbcc3f1a4cde4ff6 (diff)
downloadgdb-53c9ebc5f114920f04b2e64f03494c895aa361de.zip
gdb-53c9ebc5f114920f04b2e64f03494c895aa361de.tar.gz
gdb-53c9ebc5f114920f04b2e64f03494c895aa361de.tar.bz2
* arc-ext.c: Warning fixes.
* arc-ext.h: Likewise. * cgen-opc.c: Likewise. * ia64-gen.c: Likewise. * maxq-dis.c: Likewise. * ns32k-dis.c: Likewise. * w65-dis.c: Likewise. * ia64-asmtab.c: Regenerate.
Diffstat (limited to 'opcodes/arc-ext.c')
-rw-r--r--opcodes/arc-ext.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/opcodes/arc-ext.c b/opcodes/arc-ext.c
index 6634534..38564d7 100644
--- a/opcodes/arc-ext.c
+++ b/opcodes/arc-ext.c
@@ -1,5 +1,6 @@
/* ARC target-dependent stuff. Extension structure access functions
- Copyright 1995, 1997, 2000, 2001, 2004 Free Software Foundation, Inc.
+ Copyright 1995, 1997, 2000, 2001, 2004, 2005
+ Free Software Foundation, Inc.
This file is part of GDB.
@@ -58,7 +59,7 @@ arcExtMap_coreRegName(int value)
{
if (value < 32)
return 0;
- return (const char *) arc_extension_map.coreRegisters[value-32];
+ return arc_extension_map.coreRegisters[value-32];
}
/* Get the name of an extension condition code. */
@@ -68,7 +69,7 @@ arcExtMap_condCodeName(int value)
{
if (value < 16)
return 0;
- return (const char *) arc_extension_map.condCodes[value-16];
+ return arc_extension_map.condCodes[value-16];
}
/* Get the name of an extension aux register. */
@@ -187,7 +188,7 @@ arcExtMap_add(void *base, unsigned long length)
else
opcode -= 0x10;
insn -> flags = (char) *(p+4);
- strcpy(insn_name, (p+5));
+ strcpy (insn_name, (char *) (p+5));
insn -> name = insn_name;
arc_extension_map.instructions[(int) opcode] = insn;
}
@@ -197,7 +198,7 @@ arcExtMap_add(void *base, unsigned long length)
{
char * core_name = (char *) xmalloc(((int)*p-3) * sizeof(char));
- strcpy(core_name, (p+3));
+ strcpy(core_name, (char *) (p+3));
arc_extension_map.coreRegisters[p[2]-32] = core_name;
}
break;
@@ -205,7 +206,7 @@ arcExtMap_add(void *base, unsigned long length)
case EXT_COND_CODE:
{
char * cc_name = (char *) xmalloc( ((int)*p-3) * sizeof(char));
- strcpy(cc_name, (p+3));
+ strcpy(cc_name, (char *) (p+3));
arc_extension_map.condCodes[p[2]-16] = cc_name;
}
break;
@@ -217,7 +218,7 @@ arcExtMap_add(void *base, unsigned long length)
(struct ExtAuxRegister *)malloc(sizeof(struct ExtAuxRegister));
char * aux_name = (char *) xmalloc ( ((int)*p-6) * sizeof(char));
- strcpy (aux_name, (p+6));
+ strcpy (aux_name, (char *) (p+6));
newAuxRegister->name = aux_name;
newAuxRegister->address = p[2]<<24 | p[3]<<16 | p[4]<<8 | p[5];
newAuxRegister->next = arc_extension_map.auxRegisters;