linux-mips
[Top] [All Lists]

Re: -mcpu vs. binutils 2.13.90.0.18

To: linux-mips@linux-mips.org
Subject: Re: -mcpu vs. binutils 2.13.90.0.18
From: Thiemo Seufer <ica2_ts@csv.ica.uni-stuttgart.de>
Date: Tue, 18 Mar 2003 17:03:03 +0100
Cc: Guido Guenther <agx@sigxcpu.org>
In-reply-to: <20030318154155.GF2613@bogon.ms20.nix>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <20030318154155.GF2613@bogon.ms20.nix>
Sender: linux-mips-bounce@linux-mips.org
User-agent: Mutt/1.4i
Guido Guenther wrote:
> Hi,
> it seems newer binutils doen't know about -mcpu anymore. Is it correct
> to simply change:
>  -mcpu=r5000 -mips2 -Wa,--trap
> to
>  -mtune=r5000 -mips2 -Wa,--trap

On newer toolchains this will select r6000 opcodes with r5000 scheduling.

Try
   -mabi=o32 -march=r5000 -Wa,--trap
This may fail if the compiler is very old, though.

> for IP22? -mips2 conflicts with -march=r5000 since this implies -mips4.

This was fixed in very recent gcc. -mips2 should be an alias for -march=r6000
and -mips4 one for -march=r8000.


Thiemo

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