[Bug target/53378] gcc/regs.h hides system header regs.h on vxWorks
rbmj at verizon dot net
gcc-bugzilla@gcc.gnu.org
Wed May 23 17:40:00 GMT 2012
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";
};
More information about the Gcc-bugs
mailing list