This is the mail archive of the gcc@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: -I/usr/include (was: fixinc...)


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


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