This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: mips va_arg question
- From: Richard Sandiford <rsandifo at redhat dot com>
- To: Mile Davidovic <mdavidyu at yahoo dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Thu, 12 Aug 2004 13:33:35 +0100
- Subject: Re: mips va_arg question
- References: <20040812110151.73961.qmail@web52905.mail.yahoo.com>
Mile Davidovic <mdavidyu@yahoo.com> writes:
> Passing of double to function with variable number of
> arguments is over stack, and va_arg inside of function
> with variable number of arguments suppose that sp
> could be divided by 8.
Yes. The ABIs say that sp must be divisible by 8[*]. If it isn't
for you then something is very wrong. Where's the misaligned sp
coming from?
Richard
[*] n32 and n64 say 16, but that doesn't affect you if you're
using mips64-elf.