linux-mips
[Top] [All Lists]

Re: [patch] MIPS/gcc: Revert removal of DImode shifts for 32-bit targets

To: "Maciej W. Rozycki" <macro@linux-mips.org>
Subject: Re: [patch] MIPS/gcc: Revert removal of DImode shifts for 32-bit targets
From: Richard Sandiford <rsandifo@redhat.com>
Date: Mon, 19 Jul 2004 17:59:11 +0100
Cc: Ralf Baechle <ralf@linux-mips.org>, gcc-patches@gcc.gnu.org, linux-mips@linux-mips.org
In-reply-to: <Pine.LNX.4.55.0407191648451.3667@jurand.ds.pg.gda.pl> (Maciej W. Rozycki's message of "Mon, 19 Jul 2004 17:35:00 +0200 (CEST)")
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <Pine.LNX.4.55.0407191648451.3667@jurand.ds.pg.gda.pl>
Sender: linux-mips-bounce@linux-mips.org
User-agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux)
"Maciej W. Rozycki" <macro@linux-mips.org> writes:
> Linux relies on simple operations (addition/subtraction and shifts) on
> "long long" variables being implemented inline without a call to
> libgcc, which isn't linked in.

Sorry, but I don't think this is a reasonable expection for 64-bit
shifts on 32-bit targets.  If linux insists on not using libgcc,
it should provide:

> After your change Linux has unresolved references to external __ashldi3(),
> __ashrdi3() and __lshrdi3() functions at the final link.

...these functions itself.

Richard

<Prev in Thread] Current Thread [Next in Thread>