linux-mips
[Top] [All Lists]

Re: mips64 cpu-probe.c compile failure

To: macro@ds2.pg.gda.pl
Subject: Re: mips64 cpu-probe.c compile failure
From: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Date: Fri, 19 Sep 2003 23:21:23 +0900 (JST)
Cc: linux-mips@linux-mips.org
In-reply-to: <Pine.GSO.3.96.1030919132308.9134B-100000@delta.ds2.pg.gda.pl>
Organization: TOSHIBA Personal Computer System Corporation
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <20030918.232202.07646481.anemo@mba.ocn.ne.jp> <Pine.GSO.3.96.1030919132308.9134B-100000@delta.ds2.pg.gda.pl>
Sender: linux-mips-bounce@linux-mips.org
>>>>> On Fri, 19 Sep 2003 13:55:45 +0200 (MET DST), "Maciej W. Rozycki" 
>>>>> <macro@ds2.pg.gda.pl> said:
macro>  Well, the asm statement requires immediates, so if macros are
macro> used variables won't work anyway, but the the code will look
macro> more obscurely.

Yes, though variables won't work anyway, the inline function looks
like it can accept variables (for careless reader).  But that's just
my impression.

macro>  It looks like gcc insists on forcing the constants into
macro> registers.  The following patch should work for gcc 3.x.  A few
macro> warnings will still be emitted, but the code will get build
macro> properly.

Thanks.  It works fine with gcc 3.3.1.
---
Atsushi Nemoto

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