re PR preprocessor/7602 (C++ header files found in CPLUS_INCLUDE_PATH treated as...
authorNeil Booth <neil@daikokuya.co.uk>
Sun, 18 Aug 2002 06:26:11 +0000 (06:26 +0000)
committerNeil Booth <neil@gcc.gnu.org>
Sun, 18 Aug 2002 06:26:11 +0000 (06:26 +0000)
PR preprocessor/7602
* cppinit.c (path_include): Treat the system environment
variables as being cxx_aware.

From-SVN: r56416

gcc/ChangeLog
gcc/cppinit.c

index 8ebb481b48c777e7a3f3b41f8cf835f8f54a84fa..2c7c77942341a964c60559e040f3ca3a703bde8a 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 5b3aab2ac0dfd6138a4e2011c1a600238e77b975..0c61086a225c2e80129c7fc3a1ed3e83074757f5 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)