This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH: Fix 2 PPC/SYSV varargs problems
- To: Richard Henderson <rth at cygnus dot com>
- Subject: Re: PATCH: Fix 2 PPC/SYSV varargs problems
- From: Franz Sirl <Franz dot Sirl-kernel at lauterbach dot com>
- Date: Mon, 28 Jun 1999 22:37:33 +0200
- Cc: egcs-patches at egcs dot cygnus dot com,meissner at cygnus dot com,David Edelsohn <dje at watson dot ibm dot com>,"Jeffrey A. Law" <law at cygnus dot com>
- References: <19990627152141.A1478@cygnus.com>
Am Mon, 28 Jun 1999 schrieb Richard Henderson:
>>On Sun, Jun 27, 1999 at 01:03:18PM -0700, Richard Henderson wrote:
>> We should just be implementing the algortithm exactly
>> as presented in the ABI manual. It's clear enough.
>[...]
>> I'll give you another patch in a little bit.
>
>Try this out. I'm starting an AIX bootstrap to see that I
>didn't break anything there.
It nearly works :-). The only problem is that RS6000_ARG_SIZE returns 0 if
named==0 (unlike ALPHA_ARG_SIZE). That corrupts your calculations. I replaced
the 2 RS6000_ARG_SIZE(,,named) responsible for gregno calculation with
RS6000_ARG_SIZE(,,1), then it passed all my testcases. But I assume the better
fix is to correct RS6000_ARG_SIZE.
Franz.