From: Elena Zannoni Date: Sun, 7 Apr 2002 22:13:20 +0000 (+0000) Subject: 2002-04-07 Elena Zannoni X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=cf1fcca124940328ddedb5709b1e7ee7b1e47356;p=binutils-gdb.git 2002-04-07 Elena Zannoni * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_nofp_frame_init_saved_regs): Use alloca() for 'where' information. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 9a644633d49..049bfb4def9 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2002-04-07 Elena Zannoni + + * sh-tdep.c (sh_fp_frame_init_saved_regs, + sh_nofp_frame_init_saved_regs): Use alloca() for 'where' + information. + 2002-04-07 Andrew Cagney * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER diff --git a/gdb/sh-tdep.c b/gdb/sh-tdep.c index 9e03918c4c3..107385f493f 100644 --- a/gdb/sh-tdep.c +++ b/gdb/sh-tdep.c @@ -481,7 +481,7 @@ sh_find_callers_reg (struct frame_info *fi, int regnum) static void sh_nofp_frame_init_saved_regs (struct frame_info *fi) { - int where[NUM_REGS + NUM_PSEUDO_REGS]; + int *where = (int *) alloca (NUM_REGS + NUM_PSEUDO_REGS); int rn; int have_fp = 0; int depth; @@ -623,7 +623,7 @@ dr_reg_base_num (int dr_regnum) static void sh_fp_frame_init_saved_regs (struct frame_info *fi) { - int where[NUM_REGS + NUM_PSEUDO_REGS]; + int *where = (int *) alloca (NUM_REGS + NUM_PSEUDO_REGS); int rn; int have_fp = 0; int depth;