aboutsummaryrefslogtreecommitdiff
path: root/opcodes/ia64-gen.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/ia64-gen.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/ia64-gen.c')
-rw-r--r--opcodes/ia64-gen.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/opcodes/ia64-gen.c b/opcodes/ia64-gen.c
index bfad2f7..3b99adc 100644
--- a/opcodes/ia64-gen.c
+++ b/opcodes/ia64-gen.c
@@ -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)));