Re: MIPS stack frame question

2008-05-28 Thread Masao Uebayashi
> > - In gcc/config/mips/mips.c:mips_compute_frame_info() you do > > > > /* Move above the GPR save area. */ > > if (frame->num_gp > 0) > > { > > offset += MIPS_STACK_ALIGN (frame->num_gp * UNITS_PER_WORD); > > frame->gp_sp_offset = offset - UNITS_PER_WORD;

Re: MIPS stack frame question

2008-05-28 Thread Richard Sandiford
Masao Uebayashi <[EMAIL PROTECTED]> writes: > - In gcc/config/mips/mips.c:mips_compute_frame_info() you do > > /* Move above the GPR save area. */ > if (frame->num_gp > 0) > { > offset += MIPS_STACK_ALIGN (frame->num_gp * UNITS_PER_WORD); > frame->

MIPS stack frame question

2008-05-27 Thread Masao Uebayashi
Hi. I'm trying to figure out the structure of MIPS stack frame and how to write .frame / .mask properly. Since gcc/config/mips/mips.c was rewritten by Richard Sandiford, it got clearer that what GCC does (thanks for that). - In gcc/config/mips/mips.c:mips_compute_frame_info() you do /