Problem with "" vs <> headers and fixincludes
Bruce Korb
bkorb@gnu.org
Mon Jun 5 21:52:00 GMT 2017
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.
More information about the Gcc
mailing list