OSDN Git Service

PR preprocessor/7602
authorneil <neil@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 18 Aug 2002 06:26:11 +0000 (06:26 +0000)
committerneil <neil@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 18 Aug 2002 06:26:11 +0000 (06:26 +0000)
* cppinit.c (path_include): Treat the system environment
variables as being cxx_aware.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@56416 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/cppinit.c

index 8ebb481..2c7c779 100644 (file)
@@ -1,3 +1,9 @@
+2002-08-18  Neil Booth  <neil@daikokuya.co.uk>
+
+       PR preprocessor/7602
+       * cppinit.c (path_include): Treat the system environment
+       variables as being cxx_aware.
+
 2002-08-17  Joseph S. Myers  <jsm@polyomino.org.uk>
 
        * c-decl.c (flexible_array_type_p): New function.
index 5b3aab2..0c61086 100644 (file)
@@ -178,7 +178,7 @@ path_include (pfile, list, path)
          name[q - p] = 0;
        }
 
-      append_include_chain (pfile, name, path, 0);
+      append_include_chain (pfile, name, path, path == SYSTEM);
 
       /* Advance past this name.  */
       if (*q == 0)