(d10v_stack_align): Make static.
* config/d10v/tm-d10v.h (STACK_ALIGN): Delete.
+Thu Apr 20 18:15:08 2000 Andrew Cagney <cagney@b1.cygnus.com>
+
+ * 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 <cagney@b1.cygnus.com>
* valops.c (hand_function_call): Replace #ifdef STACK_ALIGN with
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
return ((chain) != 0 && (frame) != 0 && (frame)->pc > IMEM_START);
}
-CORE_ADDR
+static CORE_ADDR
d10v_stack_align (CORE_ADDR len)
{
return (len + 1) & ~1;
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;
}