linux-mips
[Top] [All Lists]

Re: linux.h patch for mips

To: Eric Christopher <echristo@redhat.com>
Subject: Re: linux.h patch for mips
From: Thiemo Seufer <ica2_ts@csv.ica.uni-stuttgart.de>
Date: Sun, 26 May 2002 20:29:59 +0200
Cc: "H . J . Lu" <hjl@lucon.org>, cgd@broadcom.com, linux-mips@oss.sgi.com
In-reply-to: <1022436056.29700.3.camel@ghostwheel.cygnus.com>
References: <1022278283.25829.46.camel@ghostwheel.cygnus.com> <20020524190322.C10735@lucon.org> <20020525181404.GI21557@rembrandt.csv.ica.uni-stuttgart.de> <1022436056.29700.3.camel@ghostwheel.cygnus.com>
Sender: owner-linux-mips@oss.sgi.com
User-agent: Mutt/1.3.28i
Eric Christopher wrote:
> 
> > 
> > At least for completeness there should be also _MIPS_ISA_MIPS5
> > (the -mips5 swich would cause _MIPS_ISA_MIPS1 otherwise).
> 
> Rather irrelevent since mips5 really isn't supported in gcc, but ok. I
> was more concerned with the kernel issues and how checks for processor
> features was being done. Requiring -mipsX for anything isn't a good idea
> (what if you want to compile for something that is not a particular
> architecture, e.g. -march=r4600). 

That's why my private patch for mips64-linux has:

  %{mips1:-D_MIPS_ISA=_MIPS_ISA_MIPS1} \
  %{mips2:-D_MIPS_ISA=_MIPS_ISA_MIPS2} \
  %{mips32:-D_MIPS_ISA=_MIPS_ISA_MIPS32} \
  %{mips3:-D_MIPS_ISA=_MIPS_ISA_MIPS3} \
  %{mips4:-D_MIPS_ISA=_MIPS_ISA_MIPS4} \
  %{mips5:-D_MIPS_ISA=_MIPS_ISA_MIPS5} \
  %{mips64:-D_MIPS_ISA=_MIPS_ISA_MIPS64} \
  %{!mips*: \
    %{mabi=32|mabi=o32|!mabi*:-D_MIPS_ISA=_MIPS_ISA_MIPS1} \
    %{mabi=n32|mabi=64|mabi=n64:-D_MIPS_ISA=_MIPS_ISA_MIPS3}} \


Thiemo

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