aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <cgf@cygnus.com>2001-03-02 17:20:30 +0000
committerChristopher Faylor <cgf@gcc.gnu.org>2001-03-02 17:20:30 +0000
commit4737b2745a4952bbc7273efa888a93b25f028c11 (patch)
treecbb851efb96c83db7be8a7a55039d79b0ba97697
parent758c46c9f55cab48262a3467f8d2094911d6af5e (diff)
downloadgcc-4737b2745a4952bbc7273efa888a93b25f028c11.zip
gcc-4737b2745a4952bbc7273efa888a93b25f028c11.tar.gz
gcc-4737b2745a4952bbc7273efa888a93b25f028c11.tar.bz2
cppinit.c (append_include_chain): Mark "after" include file name list as a system directory.
* cppinit.c (append_include_chain): Mark "after" include file name list as a system directory. * cpp.texi: Document new behavior. From-SVN: r40189
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/cpp.texi15
-rw-r--r--gcc/cppinit.c5
3 files changed, 18 insertions, 8 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index d1eb0ac..c3a7845 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+Fri Mar 2 12:18:13 2001 Christopher Faylor <cgf@cygnus.com>
+
+ * cppinit.c (append_include_chain): Mark "after" include file name list
+ as a system directory.
+ * cpp.texi: Document new behavior.
+
Fri Mar 2 11:59:43 CET 2001 Jan Hubicka <jh@suse.cz>
* ifcvt.c (noce_operand_ok): Handle properly unarry operations.
diff --git a/gcc/cpp.texi b/gcc/cpp.texi
index 1c7b5a7..79efd48 100644
--- a/gcc/cpp.texi
+++ b/gcc/cpp.texi
@@ -3590,10 +3590,10 @@ before processing the regular input file.
@item -idirafter @var{dir}
@findex -idirafter
@cindex second include path
-Add the directory @var{dir} to the second include path. The directories
-on the second include path are searched when a header file is not found
-in any of the directories in the main include path (the one that
-@samp{-I} adds to).
+Add the directory @var{dir} to the second include path, marking it as a
+system directory. The directories on the second include path are searched
+when a header file is not found in any of the directories in the main
+include path (the one that @samp{-I} adds to).
@item -iprefix @var{prefix}
@findex -iprefix
@@ -3603,9 +3603,10 @@ final @samp{/}.
@item -iwithprefix @var{dir}
@findex -iwithprefix
-Add a directory to the second include path. The directory's name is
-made by concatenating @var{prefix} and @var{dir}, where @var{prefix} was
-specified previously with @samp{-iprefix}.
+Add a directory to the second include path, marking it as a system
+directory. The directory's name is made by concatenating @var{prefix}
+and @var{dir}, where @var{prefix} was specified previously with
+@samp{-iprefix}.
@item -isystem @var{dir}
@findex -isystem
diff --git a/gcc/cppinit.c b/gcc/cppinit.c
index 0406e62..61f72b4 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