This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: -I/usr/include (was: fixinc...)
- To: gcc at gcc dot gnu dot org
- Subject: Re: -I/usr/include (was: fixinc...)
- From: "Zack Weinberg" <zackw at stanford dot edu>
- Date: Tue, 19 Jun 2001 17:37:48 -0700
On Mon, Jun 18, 2001 at 11:35:06AM -0700, Russ Allbery wrote:
>
> Anyway, I don't think this is a gcc problem. gcc has not allowed
> -I/usr/include for as long as I've been working with gcc; the breakage is
> just becoming more and more obvious with time as fixincludes has to do
> more and more.
It would be easy to cause cpplib to ignore -I/usr/include (actually,
-I <STANDARD_INCLUDE_DIR> and maybe also -I <SYSTEM_INCLUDE_DIR> --
see cppdefault.c).
I hesitate to do that, though. It is not in keeping with the
principle that the compiler should not second-guess the user. There
may be an exotic but legitimate use for -I/usr/include.
zw