This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: Why warn about #include_next in system headers?
Zack Weinberg wrote:-
> > This is what was confusing me. The /usr appears after the <...> in
> > the list - I expected it to be under the "...". Looking at cppinit.c,
> > I notice that *nowhere* calls append_include_chain with "QUOTE" as the
> > include chain to put the path on (i.e. we could eliminate the QUOTE
> > enumeration constant).
>
> You've forgotten -I-.
Ah yes. Damn this search path stuff is confusing.
We can still get rid of QUOTE if we want. I believe Glibc uses -I-;
I've certainly seen it used somewhere.
Neil.