This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: reordering system includes
- To: Nathan Sidwell <nathan at codesourcery dot com>
- Subject: Re: reordering system includes
- From: "Zack Weinberg" <zackw at stanford dot edu>
- Date: Thu, 26 Apr 2001 08:48:50 -0700
- Cc: gcc-patches at gcc dot gnu dot org, mark at codesourcery dot com, neil at daikokuya dot demon dot co dot uk
- References: <3AE838DA.66D41FCD@codesourcery.com>
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