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

Re: Patch to cccp.c to display omitted default include directories



  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


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