This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[RFA] Mark -idirafter and friends as "system" include directories
- To: gcc-patches at gcc dot gnu dot org
- Subject: [RFA] Mark -idirafter and friends as "system" include directories
- From: Christopher Faylor <cgf at redhat dot com>
- Date: Thu, 1 Mar 2001 23:06:06 -0500
Some discussion in another thread
( http://gcc.gnu.org/ml/gcc-patches/2001-02/msg01741.html )
seems to indicate that this is a good thing.
Ok to apply?
cgf
Thu Mar 1 22:55:46 2001 Christopher Faylor <cgf@redhat.com>
* cppinit.c (append_include_chain): Mark "after" include file name list
as a system directory.
Index: cppinit.c
===================================================================
RCS file: /cvs/uberbaum/gcc/cppinit.c,v
retrieving revision 1.150
diff -u -p -r1.150 cppinit.c
--- cppinit.c 2001/02/25 09:43:02 1.150
+++ cppinit.c 2001/03/02 04:00:22
@@ -236,7 +236,10 @@ append_include_chain (pfile, dir, path,
new->nlen = len;
new->ino = st.st_ino;
new->dev = st.st_dev;
- if (path == SYSTEM)
+ /* Both systm and after include file lists should be treated as system
+ include files since these two lists are really just a concatenation
+ of one "system" list. */
+ if (path == SYSTEM || path == AFTER)
#ifdef NO_IMPLICIT_EXTERN_C
new->sysp = 1;
#else