From 23964bcd46652820a200d7cd65d24a2f9cc9f6e1 Mon Sep 17 00:00:00 2001 From: Andrew Cagney Date: Fri, 21 Apr 2000 04:21:21 +0000 Subject: [PATCH] * d10v-tdep.c (d10v_gdbarch_init): Initialize stack_align. (d10v_stack_align): Make static. * config/d10v/tm-d10v.h (STACK_ALIGN): Delete. --- gdb/ChangeLog | 6 ++++++ gdb/config/d10v/tm-d10v.h | 3 --- gdb/d10v-tdep.c | 3 ++- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 798677fcfb6..b0c3fbf8c5b 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +Thu Apr 20 18:15:08 2000 Andrew Cagney + + * d10v-tdep.c (d10v_gdbarch_init): Initialize stack_align. + (d10v_stack_align): Make static. + * config/d10v/tm-d10v.h (STACK_ALIGN): Delete. + Thu Apr 20 14:35:46 2000 Andrew Cagney * valops.c (hand_function_call): Replace #ifdef STACK_ALIGN with diff --git a/gdb/config/d10v/tm-d10v.h b/gdb/config/d10v/tm-d10v.h index a0eb3dcf3e1..44c8c7cd544 100644 --- a/gdb/config/d10v/tm-d10v.h +++ b/gdb/config/d10v/tm-d10v.h @@ -25,7 +25,4 @@ extern int d10v_register_sim_regno (int reg); #define REGISTER_SIM_REGNO(NR) d10v_register_sim_regno((NR)) -extern CORE_ADDR d10v_stack_align (CORE_ADDR size); -#define STACK_ALIGN(SIZE) (d10v_stack_align (SIZE)) - #define NO_EXTRA_ALIGNMENT_NEEDED 1 diff --git a/gdb/d10v-tdep.c b/gdb/d10v-tdep.c index cfd70b0878e..15d81755643 100644 --- a/gdb/d10v-tdep.c +++ b/gdb/d10v-tdep.c @@ -104,7 +104,7 @@ d10v_frame_chain_valid (chain, frame) return ((chain) != 0 && (frame) != 0 && (frame)->pc > IMEM_START); } -CORE_ADDR +static CORE_ADDR d10v_stack_align (CORE_ADDR len) { return (len + 1) & ~1; @@ -1655,6 +1655,7 @@ d10v_gdbarch_init (info, arches) set_gdbarch_frame_locals_address (gdbarch, d10v_frame_locals_address); set_gdbarch_saved_pc_after_call (gdbarch, d10v_saved_pc_after_call); set_gdbarch_frame_num_args (gdbarch, frame_num_args_unknown); + set_gdbarch_stack_align (gdbarch, d10v_stack_align); return gdbarch; } -- 2.30.2