This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/16830] New: Including <sys/immu.h> with -mabi=n32 causes an error.
- From: "magnus dot bergman at observer dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 30 Jul 2004 10:37:09 -0000
- Subject: [Bug c/16830] New: Including <sys/immu.h> with -mabi=n32 causes an error.
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
When including <sys/immu.h> (which mozilla likes to do) the compilation halts
with the masseage: parse error before pte_t. <sys/immu.h> contains some very
low-level stuff which is ignored if the exact architecture is unknown (this is
what happens then using the native compiler). The problem is that gcc defines
"R4000" when using -mabi=n32 (not then using -mabi=32), which disables the
excusion of all the low-level stuff, but doesn't include all of it either.
The solution I can think of is either to NOT define "R4000" (which again is what
the native compiler does). Or to also define "IP20", "IP22", "IP28" or
"IPMHSIM", which would make <sys/immu.h> go through the compiler but I have no
idea if it's the correct thing to do.
--
Summary: Including <sys/immu.h> with -mabi=n32 causes an error.
Product: gcc
Version: 3.4.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: magnus dot bergman at observer dot net
CC: gcc-bugs at gcc dot gnu dot org
GCC host triplet: mips-sgi-irix6.5
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16830