This is the mail archive of the gcc@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]

Re: Problem with "" vs <> headers and fixincludes


On 06/01/17 07:24, Douglas B Rupp wrote:
> 
> This is a reproducer for a problem we have with fixincludes on
> vxworks6.6.  The desired output is
> FOO= 1
> 
> The problem is the rules for handling headers enclosed in quotes can
> cause gcc to #include the original header not the patched header.
> 
> It seems like a problem that could theoretically occur on any target, so
> what is the solution (other than copying each and every header into
> include-fixed)?
You have to have a include-fixed/h/foo.h header that has the line

> #include "arch/x86.h"

No way around that. fixincludes doesn't change the language.


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