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: "Dave Korn" <dk at artimi dot com>
- Cc: "'Mile Davidovic'" <mdavidyu at yahoo dot com>, <gcc at gcc dot gnu dot org>
- Date: Thu, 12 Aug 2004 13:52:03 +0100
- Subject: Re: mips va_arg question
- References: <NUTMEGxKOkjd4tRmb9C00000d0c@NUTMEG.CAM.ARTIMI.COM>
"Dave Korn" <dk@artimi.com> writes:
>> -----Original Message-----
>> From: gcc-owner On Behalf Of Richard Sandiford
>> Sent: 12 August 2004 13:34
>> To: Mile Davidovic
>>
>> Mile Davidovic 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?
>
> From his own inline asm. That doesn't even mention sp in the clobber
> list.
Yeah, I know it did in his example, but I assumed that wasn't the real
testcase. Perhaps I was just being naive. ;)
Richard