linux-mips
[Top] [All Lists]

Re: Asm hack for GCC 3.4 changes

To: Clark Williams <williams@redhat.com>
Subject: Re: Asm hack for GCC 3.4 changes
From: Ralf Baechle <ralf@linux-mips.org>
Date: Wed, 6 Oct 2004 22:39:24 +0200
Cc: MIPS Linux List <linux-mips@linux-mips.org>
In-reply-to: <1097076486.3185.23.camel@localhost.localdomain>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <1097076486.3185.23.camel@localhost.localdomain>
Sender: linux-mips-bounce@linux-mips.org
User-agent: Mutt/1.4.1i
On Wed, Oct 06, 2004 at 10:28:06AM -0500, Clark Williams wrote:

> This is a patch I use on MIPS trees to deal with the changes in the way
> GCC 3.4 handles the 'accum' pseudo register in inline asms. I originally
> just applied it to time.c, but then I noticed that cpu-bugs64.c had an
> inline asm that referenced 'accum', so I lifted the conditional macro
> def to cpu.h, which was the only common header between time.c and
> cpu-bugs64.c. Not really sure it's appropriate for cpu.h, but I didn't
> want to create a new header.
> 
> Hope it's useful.

I was actually waiting for somebody else to commit a similar but more
complete patch into CVS.  His patch was a little more complete but your's
is a bit more stylish ...

Thanks,

  Ralf

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