This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Problem with "" vs <> headers and fixincludes
- From: Bruce Korb <bkorb at gnu dot org>
- To: Douglas B Rupp <rupp at adacore dot com>, gcc at gcc dot gnu dot org
- Date: Mon, 5 Jun 2017 14:52:12 -0700
- Subject: Re: Problem with "" vs <> headers and fixincludes
- Authentication-results: sourceware.org; auth=none
- References: <03d87474-4d5a-7790-1342-1c49247173e2@adacore.com>
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.