PATCH: Fix 2 PPC/SYSV varargs problems
Franz Sirl
Franz.Sirl-kernel@lauterbach.com
Wed Jun 30 23:15:00 GMT 1999
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.
More information about the Gcc-patches
mailing list