This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug target/53378] gcc/regs.h hides system header regs.h on vxWorks


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";
};


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]