* Re: linux.h patch for mips [not found] <1022278283.25829.46.camel@ghostwheel.cygnus.com> @ 2002-05-25 2:03 ` H . J . Lu 2002-05-25 18:14 ` Thiemo Seufer 0 siblings, 1 reply; 5+ messages in thread From: H . J . Lu @ 2002-05-25 2:03 UTC (permalink / raw) To: Eric Christopher; +Cc: cgd, linux-mips I will leave it to the Linux mips people. Any comments? H.J. --- On Fri, May 24, 2002 at 03:11:23PM -0700, Eric Christopher wrote: > Hey, wanted to run this by you. > > I've noticed a tendency for the linux kernel people to test > _MIPS_ISA_MIPSXX when writing defines for 32 v. 64 bit code in the asm > headers (and other places). Personally I'd prefer they check something > else like -D__mips_fpr=32/64, but it's not something I have time to fix > in the kernel right now (and for gpr I'd have to define something new, > which wouldn't be hard). > > Thought I'd check with you and see if you had any other ideas how better > to do that kind of interface? > > -eric > > ps. I'm checking the following patch in momentarily to fix a problem I > noticed. > > -- > I will not carve gods > > Index: linux.h > =================================================================== > RCS file: /cvs/gcc/gcc/gcc/config/mips/linux.h,v > retrieving revision 1.44 > diff -u -p -w -r1.44 linux.h > --- linux.h 20 May 2002 17:11:53 -0000 1.44 > +++ linux.h 24 May 2002 21:56:01 -0000 > @@ -155,6 +155,8 @@ void FN () \ > %{mips2: -D_MIPS_ISA=_MIPS_ISA_MIPS2} \ > %{mips3: -D_MIPS_ISA=_MIPS_ISA_MIPS3} \ > %{mips4: -D_MIPS_ISA=_MIPS_ISA_MIPS4} \ > +%{mips32: -D_MIPS_ISA=_MIPS_ISA_MIPS32} \ > +%{mips64: -D_MIPS_ISA=_MIPS_ISA_MIPS64} \ > %{!mips*: -D_MIPS_ISA=_MIPS_ISA_MIPS1} \ > %{mabi=32: -D_MIPS_SIM=_MIPS_SIM_ABI32} \ > %{mabi=n32: -D_ABIN32=2 -D_MIPS_SIM=_ABIN32} \ ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: linux.h patch for mips 2002-05-25 2:03 ` linux.h patch for mips H . J . Lu @ 2002-05-25 18:14 ` Thiemo Seufer 2002-05-26 18:00 ` Eric Christopher 0 siblings, 1 reply; 5+ messages in thread From: Thiemo Seufer @ 2002-05-25 18:14 UTC (permalink / raw) To: H . J . Lu; +Cc: Eric Christopher, cgd, linux-mips H . J . Lu wrote: > I will leave it to the Linux mips people. Any comments? > > > H.J. > --- > On Fri, May 24, 2002 at 03:11:23PM -0700, Eric Christopher wrote: > > Hey, wanted to run this by you. > > > > I've noticed a tendency for the linux kernel people to test > > _MIPS_ISA_MIPSXX when writing defines for 32 v. 64 bit code in the asm > > headers (and other places). Personally I'd prefer they check something > > else like -D__mips_fpr=32/64, but it's not something I have time to fix > > in the kernel right now (and for gpr I'd have to define something new, > > which wouldn't be hard). > > > > Thought I'd check with you and see if you had any other ideas how better > > to do that kind of interface? > > > > -eric > > > > ps. I'm checking the following patch in momentarily to fix a problem I > > noticed. > > > > -- > > I will not carve gods > > > > Index: linux.h > > =================================================================== > > RCS file: /cvs/gcc/gcc/gcc/config/mips/linux.h,v > > retrieving revision 1.44 > > diff -u -p -w -r1.44 linux.h > > --- linux.h 20 May 2002 17:11:53 -0000 1.44 > > +++ linux.h 24 May 2002 21:56:01 -0000 > > @@ -155,6 +155,8 @@ void FN () \ > > %{mips2: -D_MIPS_ISA=_MIPS_ISA_MIPS2} \ > > %{mips3: -D_MIPS_ISA=_MIPS_ISA_MIPS3} \ > > %{mips4: -D_MIPS_ISA=_MIPS_ISA_MIPS4} \ At least for completeness there should be also _MIPS_ISA_MIPS5 (the -mips5 swich would cause _MIPS_ISA_MIPS1 otherwise). > > +%{mips32: -D_MIPS_ISA=_MIPS_ISA_MIPS32} \ > > +%{mips64: -D_MIPS_ISA=_MIPS_ISA_MIPS64} \ > > %{!mips*: -D_MIPS_ISA=_MIPS_ISA_MIPS1} \ > > %{mabi=32: -D_MIPS_SIM=_MIPS_SIM_ABI32} \ > > %{mabi=n32: -D_ABIN32=2 -D_MIPS_SIM=_ABIN32} \ ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: linux.h patch for mips 2002-05-25 18:14 ` Thiemo Seufer @ 2002-05-26 18:00 ` Eric Christopher 2002-05-26 18:29 ` Thiemo Seufer 0 siblings, 1 reply; 5+ messages in thread From: Eric Christopher @ 2002-05-26 18:00 UTC (permalink / raw) To: Thiemo Seufer; +Cc: H . J . Lu, cgd, linux-mips > > 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). -eric -- I will not carve gods ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: linux.h patch for mips 2002-05-26 18:00 ` Eric Christopher @ 2002-05-26 18:29 ` Thiemo Seufer 2002-05-27 6:55 ` Eric Christopher 0 siblings, 1 reply; 5+ messages in thread From: Thiemo Seufer @ 2002-05-26 18:29 UTC (permalink / raw) To: Eric Christopher; +Cc: H . J . Lu, cgd, linux-mips 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 ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: linux.h patch for mips 2002-05-26 18:29 ` Thiemo Seufer @ 2002-05-27 6:55 ` Eric Christopher 0 siblings, 0 replies; 5+ messages in thread From: Eric Christopher @ 2002-05-27 6:55 UTC (permalink / raw) To: Thiemo Seufer; +Cc: H . J . Lu, cgd, linux-mips > 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}} \ Not a bad start. There's more that needs to be done, I may end up having to submit kernel patches to make everything agree. Do people use a cvs server or ... -eric -- I will not carve gods ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2002-05-27 6:56 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <1022278283.25829.46.camel@ghostwheel.cygnus.com>
2002-05-25 2:03 ` linux.h patch for mips H . J . Lu
2002-05-25 18:14 ` Thiemo Seufer
2002-05-26 18:00 ` Eric Christopher
2002-05-26 18:29 ` Thiemo Seufer
2002-05-27 6:55 ` Eric Christopher
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.