public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/16830] New: Including <sys/immu.h> with -mabi=n32 causes an error.
@ 2004-07-30 10:37 magnus dot bergman at observer dot net
2004-07-30 13:23 ` [Bug target/16830] " bangerth at dealii dot org
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: magnus dot bergman at observer dot net @ 2004-07-30 10:37 UTC (permalink / raw)
To: gcc-bugs
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
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug target/16830] Including <sys/immu.h> with -mabi=n32 causes an error.
2004-07-30 10:37 [Bug c/16830] New: Including <sys/immu.h> with -mabi=n32 causes an error magnus dot bergman at observer dot net
@ 2004-07-30 13:23 ` bangerth at dealii dot org
2004-07-30 15:39 ` pinskia at gcc dot gnu dot org
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: bangerth at dealii dot org @ 2004-07-30 13:23 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Component|c |target
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16830
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug target/16830] Including <sys/immu.h> with -mabi=n32 causes an error.
2004-07-30 10:37 [Bug c/16830] New: Including <sys/immu.h> with -mabi=n32 causes an error magnus dot bergman at observer dot net
2004-07-30 13:23 ` [Bug target/16830] " bangerth at dealii dot org
@ 2004-07-30 15:39 ` pinskia at gcc dot gnu dot org
2004-10-26 18:52 ` rsandifo at gcc dot gnu dot org
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-07-30 15:39 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
GCC host triplet|mips-sgi-irix6.5 |
GCC target triplet| |mips-sgi-irix6.5
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16830
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug target/16830] Including <sys/immu.h> with -mabi=n32 causes an error.
2004-07-30 10:37 [Bug c/16830] New: Including <sys/immu.h> with -mabi=n32 causes an error magnus dot bergman at observer dot net
2004-07-30 13:23 ` [Bug target/16830] " bangerth at dealii dot org
2004-07-30 15:39 ` pinskia at gcc dot gnu dot org
@ 2004-10-26 18:52 ` rsandifo at gcc dot gnu dot org
2004-11-06 22:34 ` cvs-commit at gcc dot gnu dot org
2004-11-06 22:39 ` rsandifo at gcc dot gnu dot org
4 siblings, 0 replies; 6+ messages in thread
From: rsandifo at gcc dot gnu dot org @ 2004-10-26 18:52 UTC (permalink / raw)
To: gcc-bugs
------- 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
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug target/16830] Including <sys/immu.h> with -mabi=n32 causes an error.
2004-07-30 10:37 [Bug c/16830] New: Including <sys/immu.h> with -mabi=n32 causes an error magnus dot bergman at observer dot net
` (2 preceding siblings ...)
2004-10-26 18:52 ` rsandifo at gcc dot gnu dot org
@ 2004-11-06 22:34 ` cvs-commit at gcc dot gnu dot org
2004-11-06 22:39 ` rsandifo at gcc dot gnu dot org
4 siblings, 0 replies; 6+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-11-06 22:34 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2004-11-06 22:34 -------
Subject: Bug 16830
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: rsandifo@gcc.gnu.org 2004-11-06 22:34:01
Modified files:
gcc : ChangeLog
gcc/config/mips: mips.h
Log message:
PR target/16830
* config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Don't define the
R3000 and R4000 macros on IRIX.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.6210&r2=2.6211
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/config/mips/mips.h.diff?cvsroot=gcc&r1=1.374&r2=1.375
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16830
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug target/16830] Including <sys/immu.h> with -mabi=n32 causes an error.
2004-07-30 10:37 [Bug c/16830] New: Including <sys/immu.h> with -mabi=n32 causes an error magnus dot bergman at observer dot net
` (3 preceding siblings ...)
2004-11-06 22:34 ` cvs-commit at gcc dot gnu dot org
@ 2004-11-06 22:39 ` rsandifo at gcc dot gnu dot org
4 siblings, 0 replies; 6+ messages in thread
From: rsandifo at gcc dot gnu dot org @ 2004-11-06 22:39 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From rsandifo at gcc dot gnu dot org 2004-11-06 22:39 -------
Fixed in mainline:
http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00513.html
--
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
Target Milestone|--- |4.0.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16830
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2004-11-06 22:39 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-07-30 10:37 [Bug c/16830] New: Including <sys/immu.h> with -mabi=n32 causes an error magnus dot bergman at observer dot net
2004-07-30 13:23 ` [Bug target/16830] " bangerth at dealii dot org
2004-07-30 15:39 ` pinskia at gcc dot gnu dot org
2004-10-26 18:52 ` rsandifo at gcc dot gnu dot org
2004-11-06 22:34 ` cvs-commit at gcc dot gnu dot org
2004-11-06 22:39 ` rsandifo at gcc dot gnu dot org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).