[Bug target/16830] Including <sys/immu.h> with -mabi=n32 causes an error.

rsandifo at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Tue Oct 26 18:52:00 GMT 2004


------- Additional Comments From rsandifo at gcc dot gnu dot org  2004-10-26 18:52 -------
Confirmed.  Of the two choices you mention, I think it would be
better to remove the R3000 and R4000 macros for IRIX.  Another
option would be to use fixincludes, but I think removing the
macros is better.  Like you say, MIPSpro doesn't define them,
even in underscore form, and they've always been a bit flawed
anyway.

[ Reasoning: the macros sound like they're indicators of the
  target ISA, but they really indicators of "64-bitness".
   __mips is a better choice if you want to know the specific
  ISA level and __mips64 is better if you just want to know
  whether the code is 64-bit or not. ]

I'll try to bootstrap the obvious patch soon, but the irix box
I use is a bit under the weather right now.


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |rsandifo at gcc dot gnu dot
                   |dot org                     |org
             Status|UNCONFIRMED                 |ASSIGNED


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16830



More information about the Gcc-bugs mailing list