[rfc] fix umul_ppmm() in our libgcc

Adrian Chadd adrian at freebsd.org
Tue Jun 16 17:47:42 UTC 2015


ok, I'll give this a go tomorrow.



-a


On 15 June 2015 at 22:18, Alexander Kabaev <kabaev at gmail.com> wrote:
> On Sat, 13 Jun 2015 15:41:34 -0700
> Adrian Chadd <adrian at freebsd.org> wrote:
>
>> Hi,
>>
>> our libgcc in -base is very .. old. It chokes when compiling for
>> mips32. This patch seems to do the right thing.
>>
>> Does anyone have any positive/negative feedback?
>>
>> Thanks,
>>
>>
>> -adrian
>
> Newer version of GCC use similar construct, but actual multiplication
> is done using more correct selection of casts:
>
> UDItype __x = (UDItype) (USItype) (u) * (USItype) (v);
>
> I suggest you follow their lead. No objections otherwise.
>
> --
> Alexander Kabaev


More information about the freebsd-mips mailing list