This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Problems with double arguments to varargs on MIPS
- From: Ian Lance Taylor <iant at google dot com>
- To: Simon Kagstrom <simon dot kagstrom at bth dot se>
- Cc: gcc-help at gcc dot gnu dot org
- Date: 09 Jan 2007 06:12:50 -0800
- Subject: Re: Problems with double arguments to varargs on MIPS
- References: <87bql8bjv3.wl%simon.kagstrom@bth.se>
Simon Kagstrom <simon.kagstrom@bth.se> writes:
> Is the stack-alignment requirements spelled out somewhere? I quickly
> glanced in the gcc and gccint info-pages, but didn't find it there.
Look at STACK_BOUNDARY in the config/CPU/CPU.h file for your target.
For MIPS using the old ABI STACK_BOUNDARY is 64, which means you must
align the stack on a 64-bit boundary in your startup code. For the
new ABI STACK_BOUNDARY is 128.
Ian