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: reordering system includes


On Thu, Apr 26, 2001 at 04:03:54PM +0100, Nathan Sidwell wrote:
> Hi,
> this patch gives a diagnostic if a system include directory's search
> order is changed. It catches things like -I/usr/include without -nostdinc.
> 
> given libstdc++-v3's sensitivity to fixincluded header files, I think
> this patch should be considered for the 3.0 branch.

The principle's fine, but...

> + 	    if (cur->sysp && (!other->sysp || other->next != cur))
> + 	      fprintf (stderr,
> + 		       _("changing search order for system directory \"%s\"\n"),
> + 		       cur->name);

shouldn't this use cpp_warning?

zw


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