aboutsummaryrefslogtreecommitdiff
path: root/gdb/ia64-tdep.c
diff options
context:
space:
mode:
authorKevin Buettner <kevinb@redhat.com>2001-03-27 02:45:54 +0000
committerKevin Buettner <kevinb@redhat.com>2001-03-27 02:45:54 +0000
commit2fc3ac7ed83b7edf63c0982117a758ab85913fbc (patch)
treea5db0fe9cab944e3555baed07d569200dcc08759 /gdb/ia64-tdep.c
parent1268a053f839194be0dbee2f6d2329437762bb79 (diff)
downloadgdb-2fc3ac7ed83b7edf63c0982117a758ab85913fbc.zip
gdb-2fc3ac7ed83b7edf63c0982117a758ab85913fbc.tar.gz
gdb-2fc3ac7ed83b7edf63c0982117a758ab85913fbc.tar.bz2
Fix problems encountered in compiling ia64-tdep.c with IBM's compiler.
Diffstat (limited to 'gdb/ia64-tdep.c')
-rw-r--r--gdb/ia64-tdep.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/ia64-tdep.c b/gdb/ia64-tdep.c
index e46c4b4..dca7ba1 100644
--- a/gdb/ia64-tdep.c
+++ b/gdb/ia64-tdep.c
@@ -432,7 +432,7 @@ replace_bit_field (char *bundle, long long val, int from, int len)
and instruction bundle */
static long long
-slotN_contents (unsigned char *bundle, int slotnum)
+slotN_contents (char *bundle, int slotnum)
{
return extract_bit_field (bundle, 5+41*slotnum, 41);
}
@@ -440,7 +440,7 @@ slotN_contents (unsigned char *bundle, int slotnum)
/* Store an instruction in an instruction bundle */
static void
-replace_slotN_contents (unsigned char *bundle, long long instr, int slotnum)
+replace_slotN_contents (char *bundle, long long instr, int slotnum)
{
replace_bit_field (bundle, instr, 5+41*slotnum, 41);
}
@@ -1165,7 +1165,7 @@ ia64_get_saved_register (char *raw_buffer,
}
else if (IA64_PR0_REGNUM <= regnum && regnum <= IA64_PR63_REGNUM)
{
- char pr_raw_buffer[MAX_REGISTER_RAW_SIZE];
+ char *pr_raw_buffer = alloca (MAX_REGISTER_RAW_SIZE);
int pr_optim;
enum lval_type pr_lval;
CORE_ADDR pr_addr;
@@ -1188,7 +1188,7 @@ ia64_get_saved_register (char *raw_buffer,
}
else if (IA64_NAT0_REGNUM <= regnum && regnum <= IA64_NAT31_REGNUM)
{
- char unat_raw_buffer[MAX_REGISTER_RAW_SIZE];
+ char *unat_raw_buffer = alloca (MAX_REGISTER_RAW_SIZE);
int unat_optim;
enum lval_type unat_lval;
CORE_ADDR unat_addr;