size computation for alloca.
(sh_fp_frame_init_saved_regs): Likewise.
+2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
+
+ * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
+ size computation for alloca.
+ (sh_fp_frame_init_saved_regs): Likewise.
+
2002-05-07 Richard Earnshaw <rearnsha@arm.com>
* arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
static void
sh_nofp_frame_init_saved_regs (struct frame_info *fi)
{
- int *where = (int *) alloca (NUM_REGS + NUM_PSEUDO_REGS);
+ int *where = (int *) alloca ((NUM_REGS + NUM_PSEUDO_REGS) * sizeof(int));
int rn;
int have_fp = 0;
int depth;
static void
sh_fp_frame_init_saved_regs (struct frame_info *fi)
{
- int *where = (int *) alloca (NUM_REGS + NUM_PSEUDO_REGS);
+ int *where = (int *) alloca ((NUM_REGS + NUM_PSEUDO_REGS) * sizeof(int));
int rn;
int have_fp = 0;
int depth;