summaryrefslogtreecommitdiff
path: root/gcc/cppinit.c
diff options
context:
space:
mode:
authorcgf <cgf@138bc75d-0d04-0410-961f-82ee72b054a4>2001-03-02 17:20:30 +0000
committercgf <cgf@138bc75d-0d04-0410-961f-82ee72b054a4>2001-03-02 17:20:30 +0000
commit4dac543a3c5e70137b66f221727690d43c538171 (patch)
treecbb851efb96c83db7be8a7a55039d79b0ba97697 /gcc/cppinit.c
parentae49388212b599a2e9a764327f09741626422971 (diff)
downloadgcc-4dac543a3c5e70137b66f221727690d43c538171.tar.gz
* cppinit.c (append_include_chain): Mark "after" include file name list as a
system directory. * cpp.texi: Document new behavior. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@40189 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cppinit.c')
-rw-r--r--gcc/cppinit.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/cppinit.c b/gcc/cppinit.c
index 0406e629040..61f72b4544e 100644
--- a/gcc/cppinit.c
+++ b/gcc/cppinit.c
@@ -237,7 +237,10 @@ append_include_chain (pfile, dir, path, cxx_aware)
new->len = 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