linux-mips
[Top] [All Lists]

Asm hack for GCC 3.4 changes

To: Ralf Baechle <ralf@linux-mips.org>
Subject: Asm hack for GCC 3.4 changes
From: Clark Williams <williams@redhat.com>
Date: Wed, 06 Oct 2004 10:28:06 -0500
Cc: MIPS Linux List <linux-mips@linux-mips.org>
Original-recipient: rfc822;linux-mips@linux-mips.org
Sender: linux-mips-bounce@linux-mips.org
Ralf,

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.

Clark

Attachment: mips_gcc34.patch
Description: Text Data

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