* [Bug target/53378] gcc/regs.h hides system header regs.h on vxWorks
2012-05-16 16:22 [Bug target/53378] New: gcc/regs.h hides system header regs.h on vxWorks rbmj at verizon dot net
@ 2012-05-16 16:33 ` pinskia at gcc dot gnu.org
2012-05-16 16:50 ` rbmj at verizon dot net
` (9 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu.org @ 2012-05-16 16:33 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53378
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> 2012-05-16 16:22:33 UTC ---
This is another one of these target headers including GCC headers which should
not be done.
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug target/53378] gcc/regs.h hides system header regs.h on vxWorks
2012-05-16 16:22 [Bug target/53378] New: gcc/regs.h hides system header regs.h on vxWorks rbmj at verizon dot net
2012-05-16 16:33 ` [Bug target/53378] " pinskia at gcc dot gnu.org
@ 2012-05-16 16:50 ` rbmj at verizon dot net
2012-05-18 9:40 ` ebotcazou at gcc dot gnu.org
` (8 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: rbmj at verizon dot net @ 2012-05-16 16:50 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53378
--- Comment #2 from rbmj at verizon dot net 2012-05-16 16:33:36 UTC ---
No it is not. regs.h is a system header on VxWorks. I can see a big:
/* regs.h - CPU registers */
/* Copyright 1984-2003 Wind River Systems, Inc. */
At the top of /usr/powerpc-wrs-vxworks/sys-include/regs.h. It includes an
architecture specific register file and then defines a struct regindex. I
checked gcc/regs.h - they are not the same.
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug target/53378] gcc/regs.h hides system header regs.h on vxWorks
2012-05-16 16:22 [Bug target/53378] New: gcc/regs.h hides system header regs.h on vxWorks rbmj at verizon dot net
2012-05-16 16:33 ` [Bug target/53378] " pinskia at gcc dot gnu.org
2012-05-16 16:50 ` rbmj at verizon dot net
@ 2012-05-18 9:40 ` ebotcazou at gcc dot gnu.org
2012-05-18 12:32 ` rbmj at verizon dot net
` (7 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: ebotcazou at gcc dot gnu.org @ 2012-05-18 9:40 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53378
Eric Botcazou <ebotcazou at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2012-05-18
CC| |ebotcazou at gcc dot
| |gnu.org
Ever Confirmed|0 |1
--- Comment #3 from Eric Botcazou <ebotcazou at gcc dot gnu.org> 2012-05-18 09:19:46 UTC ---
Old known issue. We use a trick in ada/sigtramp-ppcvxw.c:
#include <vxWorks.h>
#include <arch/../regs.h>
#include <sigLib.h>
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug target/53378] gcc/regs.h hides system header regs.h on vxWorks
2012-05-16 16:22 [Bug target/53378] New: gcc/regs.h hides system header regs.h on vxWorks rbmj at verizon dot net
` (2 preceding siblings ...)
2012-05-18 9:40 ` ebotcazou at gcc dot gnu.org
@ 2012-05-18 12:32 ` rbmj at verizon dot net
2012-05-23 17:40 ` rbmj at verizon dot net
` (6 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: rbmj at verizon dot net @ 2012-05-18 12:32 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53378
--- Comment #4 from rbmj at verizon dot net 2012-05-18 12:16:29 UTC ---
The issue is that this is affecting a system header (ioLib.h) which is included
from other, standard header files.
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug target/53378] gcc/regs.h hides system header regs.h on vxWorks
2012-05-16 16:22 [Bug target/53378] New: gcc/regs.h hides system header regs.h on vxWorks rbmj at verizon dot net
` (3 preceding siblings ...)
2012-05-18 12:32 ` rbmj at verizon dot net
@ 2012-05-23 17:40 ` rbmj at verizon dot net
2012-05-23 17:58 ` ebotcazou at gcc dot gnu.org
` (5 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: rbmj at verizon dot net @ 2012-05-23 17:40 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53378
--- Comment #5 from rbmj at verizon dot net 2012-05-23 17:27:09 UTC ---
Could this be fixed by a fixincludes stub somewhat like the following?
/*
* Work around same-named gcc header regs.h in taskLib.h on VxWorks
*/
fix = {
hackname = vxworks_tasklib_regs;
files = taskLib.h;
test = " -r vxWorks.h ";
select = "#[\t ]*include[\t ]+<regs.h>";
c_fix = format;
c_fix_arg = "#include <arch/../regs.h>";
test_text = "`touch taskLib.h vxWorks.h`"
"#include <regs.h>\n";
};
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug target/53378] gcc/regs.h hides system header regs.h on vxWorks
2012-05-16 16:22 [Bug target/53378] New: gcc/regs.h hides system header regs.h on vxWorks rbmj at verizon dot net
` (4 preceding siblings ...)
2012-05-23 17:40 ` rbmj at verizon dot net
@ 2012-05-23 17:58 ` ebotcazou at gcc dot gnu.org
2012-05-23 18:11 ` rbmj at verizon dot net
` (4 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: ebotcazou at gcc dot gnu.org @ 2012-05-23 17:58 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53378
--- Comment #6 from Eric Botcazou <ebotcazou at gcc dot gnu.org> 2012-05-23 17:50:44 UTC ---
> Could this be fixed by a fixincludes stub somewhat like the following?
I don't understand why you cannot use a similar trick as ada/sigtramp-ppcvxw.c.
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug target/53378] gcc/regs.h hides system header regs.h on vxWorks
2012-05-16 16:22 [Bug target/53378] New: gcc/regs.h hides system header regs.h on vxWorks rbmj at verizon dot net
` (5 preceding siblings ...)
2012-05-23 17:58 ` ebotcazou at gcc dot gnu.org
@ 2012-05-23 18:11 ` rbmj at verizon dot net
2012-05-23 18:53 ` ebotcazou at gcc dot gnu.org
` (3 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: rbmj at verizon dot net @ 2012-05-23 18:11 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53378
--- Comment #7 from rbmj at verizon dot net 2012-05-23 17:57:53 UTC ---
> > Could this be fixed by a fixincludes stub somewhat like the following?
>
> I don't understand why you cannot use a similar trick as ada/sigtramp-ppcvxw.c.
Isn't that the same trick? It's just that taskLib.h is not in GCC sources so I
can't just put the change in. Yes, I can change my local header file, but
isn't avoiding manual changes to system headers and automating that same
process the purpose of fixincludes?
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug target/53378] gcc/regs.h hides system header regs.h on vxWorks
2012-05-16 16:22 [Bug target/53378] New: gcc/regs.h hides system header regs.h on vxWorks rbmj at verizon dot net
` (6 preceding siblings ...)
2012-05-23 18:11 ` rbmj at verizon dot net
@ 2012-05-23 18:53 ` ebotcazou at gcc dot gnu.org
2012-05-23 20:16 ` rbmj at verizon dot net
` (2 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: ebotcazou at gcc dot gnu.org @ 2012-05-23 18:53 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53378
--- Comment #8 from Eric Botcazou <ebotcazou at gcc dot gnu.org> 2012-05-23 18:51:55 UTC ---
> Isn't that the same trick? It's just that taskLib.h is not in GCC sources so I
> can't just put the change in.
The trick should be in libgcc/config/vxlib.c of course...
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug target/53378] gcc/regs.h hides system header regs.h on vxWorks
2012-05-16 16:22 [Bug target/53378] New: gcc/regs.h hides system header regs.h on vxWorks rbmj at verizon dot net
` (7 preceding siblings ...)
2012-05-23 18:53 ` ebotcazou at gcc dot gnu.org
@ 2012-05-23 20:16 ` rbmj at verizon dot net
2012-06-25 18:25 ` rbmj at verizon dot net
2012-10-30 2:01 ` rbmj at verizon dot net
10 siblings, 0 replies; 12+ messages in thread
From: rbmj at verizon dot net @ 2012-05-23 20:16 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53378
--- Comment #9 from rbmj at verizon dot net 2012-05-23 19:29:23 UTC ---
Created attachment 27482
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=27482
Errors introduced by gcc/regs.h
The problem is that gcc/regs.h introduces its own errors. It looks like it's
missing some other header of its own. So even if I add #include
<arch/../regs.h> before #include <taskLib.h>, there's still a bunch of errors
from the transitive include. It would be possible to just add all the extra
includes that gcc/regs.h needs, but it doesn't seem like the *best* solution,
that's all.
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug target/53378] gcc/regs.h hides system header regs.h on vxWorks
2012-05-16 16:22 [Bug target/53378] New: gcc/regs.h hides system header regs.h on vxWorks rbmj at verizon dot net
` (8 preceding siblings ...)
2012-05-23 20:16 ` rbmj at verizon dot net
@ 2012-06-25 18:25 ` rbmj at verizon dot net
2012-10-30 2:01 ` rbmj at verizon dot net
10 siblings, 0 replies; 12+ messages in thread
From: rbmj at verizon dot net @ 2012-06-25 18:25 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53378
--- Comment #10 from rbmj at verizon dot net 2012-06-25 18:25:11 UTC ---
This issue is resolved in this (approved, not committed) patch series here:
http://gcc.gnu.org/ml/gcc-patches/2012-06/msg00382.html, specifically
http://gcc.gnu.org/ml/gcc-patches/2012-06/msg00389.html with dependency on
http://gcc.gnu.org/ml/gcc-patches/2012-06/msg00383.html
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug target/53378] gcc/regs.h hides system header regs.h on vxWorks
2012-05-16 16:22 [Bug target/53378] New: gcc/regs.h hides system header regs.h on vxWorks rbmj at verizon dot net
` (9 preceding siblings ...)
2012-06-25 18:25 ` rbmj at verizon dot net
@ 2012-10-30 2:01 ` rbmj at verizon dot net
10 siblings, 0 replies; 12+ messages in thread
From: rbmj at verizon dot net @ 2012-10-30 2:01 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53378
rbmj at verizon dot net changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #11 from rbmj at verizon dot net 2012-10-30 02:01:21 UTC ---
Fixed in 192952!
^ permalink raw reply [flat|nested] 12+ messages in thread