* 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.
This commit is contained in:
parent
5718918d7a
commit
53c9ebc5f1
@ -1,3 +1,14 @@
|
||||
2005-02-22 Alan Modra <amodra@bigpond.net.au>
|
||||
|
||||
* 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.
|
||||
|
||||
2005-02-22 Alan Modra <amodra@bigpond.net.au>
|
||||
|
||||
* fr30-desc.c: Regenerate.
|
||||
|
@ -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;
|
||||
|
@ -1,5 +1,5 @@
|
||||
/* ARC target-dependent stuff. Extension data structures.
|
||||
Copyright 1995, 1997, 2000, 2001 Free Software Foundation, Inc.
|
||||
Copyright 1995, 1997, 2000, 2001, 2005 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of GDB.
|
||||
|
||||
@ -20,10 +20,10 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
||||
#ifndef ARCEXT_H
|
||||
#define ARCEXT_H
|
||||
|
||||
enum {EXT_INSTRUCTION = 0};
|
||||
enum {EXT_CORE_REGISTER = 1};
|
||||
enum {EXT_AUX_REGISTER = 2};
|
||||
enum {EXT_COND_CODE = 3};
|
||||
enum {EXT_INSTRUCTION = 0,
|
||||
EXT_CORE_REGISTER = 1,
|
||||
EXT_AUX_REGISTER = 2,
|
||||
EXT_COND_CODE = 3};
|
||||
|
||||
enum {NUM_EXT_INST = (0x1f-0x10+1) + (0x3f-0x09+1)};
|
||||
enum {NUM_EXT_CORE = 59-32+1};
|
||||
@ -46,8 +46,8 @@ struct arcExtMap
|
||||
{
|
||||
struct ExtAuxRegister *auxRegisters;
|
||||
struct ExtInstruction *instructions[NUM_EXT_INST];
|
||||
unsigned char *coreRegisters[NUM_EXT_CORE];
|
||||
unsigned char *condCodes[NUM_EXT_COND];
|
||||
char *coreRegisters[NUM_EXT_CORE];
|
||||
char *condCodes[NUM_EXT_COND];
|
||||
};
|
||||
|
||||
extern int arcExtMap_add(void*, unsigned long);
|
||||
|
@ -1,6 +1,6 @@
|
||||
/* CGEN generic opcode support.
|
||||
|
||||
Copyright 1996, 1997, 1998, 1999, 2000, 2001
|
||||
Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2005
|
||||
Free Software Foundation, Inc.
|
||||
|
||||
This file is part of the GNU Binutils and GDB, the GNU debugger.
|
||||
@ -483,7 +483,7 @@ cgen_lookup_insn (CGEN_CPU_DESC cd,
|
||||
/* The instructions are stored in hash lists.
|
||||
Pick the first one and keep trying until we find the right one. */
|
||||
|
||||
insn_list = cgen_dis_lookup_insn (cd, buf, base_insn);
|
||||
insn_list = cgen_dis_lookup_insn (cd, (char *) buf, base_insn);
|
||||
while (insn_list != NULL)
|
||||
{
|
||||
insn = insn_list->insn;
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -1,5 +1,6 @@
|
||||
/* ia64-gen.c -- Generate a shrunk set of opcode tables
|
||||
Copyright 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
|
||||
Copyright 1999, 2000, 2001, 2002, 2004, 2005
|
||||
Free Software Foundation, Inc.
|
||||
Written by Bob Manson, Cygnus Solutions, <manson@cygnus.com>
|
||||
|
||||
This file is part of GDB, GAS, and the GNU binutils.
|
||||
@ -1570,7 +1571,7 @@ print_dependency_table ()
|
||||
for (i=0;i < dlistlen;i++)
|
||||
{
|
||||
int len = 2;
|
||||
printf ("static const short dep%d[] = {\n ", i);
|
||||
printf ("static const unsigned short dep%d[] = {\n ", i);
|
||||
for (j=0;j < dlists[i]->len; j++)
|
||||
{
|
||||
len += printf ("%d, ", dlists[i]->deps[j]);
|
||||
@ -1913,7 +1914,7 @@ gen_dis_table (ent)
|
||||
if ((needed_bytes + insn_list_len) > tot_insn_list_len)
|
||||
{
|
||||
tot_insn_list_len += 256;
|
||||
insn_list = (char *) xrealloc (insn_list, tot_insn_list_len);
|
||||
insn_list = (unsigned char *) xrealloc (insn_list, tot_insn_list_len);
|
||||
}
|
||||
our_offset = insn_list_len;
|
||||
insn_list_len += needed_bytes;
|
||||
@ -2064,7 +2065,7 @@ gen_dis_table (ent)
|
||||
/* Store the address of the entry being branched to. */
|
||||
while (currbits >= 0)
|
||||
{
|
||||
char *byte = insn_list + our_offset + bitsused / 8;
|
||||
unsigned char *byte = insn_list + our_offset + bitsused / 8;
|
||||
|
||||
if (idest & (1 << currbits))
|
||||
*byte |= (1 << (7 - (bitsused % 8)));
|
||||
|
@ -1,6 +1,6 @@
|
||||
/* Instruction printing code for the MAXQ
|
||||
|
||||
Copyright 2004 Free Software Foundation, Inc.
|
||||
Copyright 2004, 2005 Free Software Foundation, Inc.
|
||||
|
||||
Written by Vineet Sharma(vineets@noida.hcltech.com) Inderpreet
|
||||
S.(inderpreetb@noida.hcltech.com)
|
||||
@ -145,9 +145,9 @@ unsigned char const SIM_ALU_DECODE_POP_OP_GROUP = 10;
|
||||
unsigned char const SIM_ALU_DECODE_CMP_SRC_OP_GROUP = 11;
|
||||
|
||||
/* GLOBAL */
|
||||
unsigned char unres_reg_name[20];
|
||||
char unres_reg_name[20];
|
||||
|
||||
static unsigned char *
|
||||
static char *
|
||||
get_reg_name (unsigned char reg_code, type1 arg_pos)
|
||||
{
|
||||
unsigned char module;
|
||||
|
@ -1,5 +1,5 @@
|
||||
/* Print National Semiconductor 32000 instructions.
|
||||
Copyright 1986, 1988, 1991, 1992, 1994, 1998, 2001, 2002
|
||||
Copyright 1986, 1988, 1991, 1992, 1994, 1998, 2001, 2002, 2005
|
||||
Free Software Foundation, Inc.
|
||||
|
||||
This file is part of opcodes library.
|
||||
@ -33,12 +33,12 @@ static disassemble_info *dis_info;
|
||||
/*
|
||||
* Hacks to get it to compile <= READ THESE AS FIXES NEEDED
|
||||
*/
|
||||
#define INVALID_FLOAT(val, size) invalid_float((char *)val, size)
|
||||
#define INVALID_FLOAT(val, size) invalid_float((bfd_byte *)val, size)
|
||||
|
||||
static int print_insn_arg
|
||||
PARAMS ((int, int, int *, char *, bfd_vma, char *, int));
|
||||
static int get_displacement PARAMS ((char *, int *));
|
||||
static int invalid_float PARAMS ((char *, int));
|
||||
PARAMS ((int, int, int *, bfd_byte *, bfd_vma, char *, int));
|
||||
static int get_displacement PARAMS ((bfd_byte *, int *));
|
||||
static int invalid_float PARAMS ((bfd_byte *, int));
|
||||
static long int read_memory_integer PARAMS ((unsigned char *, int));
|
||||
static int fetch_data PARAMS ((struct disassemble_info *, bfd_byte *));
|
||||
struct ns32k_option;
|
||||
@ -46,7 +46,7 @@ static void optlist PARAMS ((int, const struct ns32k_option *, char *));
|
||||
static void list_search PARAMS ((int, const struct ns32k_option *, char *));
|
||||
static int bit_extract PARAMS ((bfd_byte *, int, int));
|
||||
static int bit_extract_simple PARAMS ((bfd_byte *, int, int));
|
||||
static void bit_copy PARAMS ((char *, int, int, char *));
|
||||
static void bit_copy PARAMS ((bfd_byte *, int, int, char *));
|
||||
static int sign_extend PARAMS ((int, int));
|
||||
static void flip_bytes PARAMS ((char *, int));
|
||||
|
||||
@ -340,7 +340,7 @@ bit_extract_simple (buffer, offset, count)
|
||||
|
||||
static void
|
||||
bit_copy (buffer, offset, count, to)
|
||||
char *buffer;
|
||||
bfd_byte *buffer;
|
||||
int offset;
|
||||
int count;
|
||||
char *to;
|
||||
@ -551,7 +551,7 @@ static int
|
||||
print_insn_arg (d, ioffset, aoffsetp, buffer, addr, result, index_offset)
|
||||
int d;
|
||||
int ioffset, *aoffsetp;
|
||||
char *buffer;
|
||||
bfd_byte *buffer;
|
||||
bfd_vma addr;
|
||||
char *result;
|
||||
int index_offset;
|
||||
@ -827,7 +827,7 @@ print_insn_arg (d, ioffset, aoffsetp, buffer, addr, result, index_offset)
|
||||
|
||||
static int
|
||||
get_displacement (buffer, aoffsetp)
|
||||
char *buffer;
|
||||
bfd_byte *buffer;
|
||||
int *aoffsetp;
|
||||
{
|
||||
int Ivalue;
|
||||
@ -861,7 +861,7 @@ get_displacement (buffer, aoffsetp)
|
||||
#if 1 /* a version that should work on ns32k f's&d's on any machine */
|
||||
static int
|
||||
invalid_float (p, len)
|
||||
register char *p;
|
||||
register bfd_byte *p;
|
||||
register int len;
|
||||
{
|
||||
register int val;
|
||||
|
@ -1,5 +1,6 @@
|
||||
/* Disassemble WDC 65816 instructions.
|
||||
Copyright 1995, 1998, 2000, 2001, 2002 Free Software Foundation, Inc.
|
||||
Copyright 1995, 1998, 2000, 2001, 2002, 2005
|
||||
Free Software Foundation, Inc.
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
@ -27,7 +28,7 @@ static fprintf_ftype fpr;
|
||||
static void *stream;
|
||||
static struct disassemble_info *local_info;
|
||||
|
||||
static void print_operand PARAMS ((int, char *, unsigned int *));
|
||||
static void print_operand PARAMS ((int, char *, int *));
|
||||
|
||||
#if 0
|
||||
static char *lname[] = { "r0","r1","r2","r3","r4","r5","r6","r7","s0" };
|
||||
@ -45,7 +46,7 @@ static void
|
||||
print_operand (lookup, format, args)
|
||||
int lookup;
|
||||
char *format;
|
||||
unsigned int *args;
|
||||
int *args;
|
||||
{
|
||||
int val;
|
||||
int c;
|
||||
|
Loading…
x
Reference in New Issue
Block a user