This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Patch to cccp.c to display omitted default include directories
- To: Nick Clifton <nickc at cygnus dot com>
- Subject: Re: Patch to cccp.c to display omitted default include directories
- From: Jeffrey A Law <law at hurl dot cygnus dot com>
- Date: Tue, 02 Mar 1999 01:40:51 -0700
- cc: egcs-patches at cygnus dot com
- Reply-To: law at cygnus dot com
In message <199902232206.OAA20499@elmo.cygnus.com>you write:
> Hi Guys,
>
> I would like to submit the following little patch which provided
> some useful debugging information for when I was tracking down a
> configuration problem. The patch extends the -v output of 'cpp' so
> that it also lists the default include directories which were never
> appended to the include directory chain.
>
> Cheers
> Nick
>
>
> Tue Feb 23 14:00:40 1999 Nick Clifton <nickc@cygnus.com>
>
> * cccp.c (struct default_include): Add 'included' field.
> (main): Set 'included' field when a default include directory
> is added to the chain. If -v is specified list all default
> include directories which do not get appended to the chain.
Can you do the same thing for cpplib?
It might make sense to have this conditional on a warning flag (a generic
one, or a specific one would be fine by me).
It might be good improve the warning to note why those directories did not
get added to the chain (because they didn't exist? any other reason they
would not get added?)
jeff