]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
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:24:13 +0000 (06:24 +0000)
committerNeil Booth <neil@gcc.gnu.org>
Sun, 18 Aug 2002 06:24:13 +0000 (06:24 +0000)
PR preprocessor/7602
* cppinit.c (path_include): Treat the system environment
variables as being cxx_aware.

From-SVN: r56415

gcc/ChangeLog
gcc/cppinit.c

index 0b43dbdc322b043bafb7c87911b2ccef97293fc4..e52d4280ecb4fe678ddd5ec49ea03f6c5ea197fa 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-16  David Edelsohn  <edelsohn@gnu.org>
 
        * collect2.c (is_ctor_dtor): Add other possible JOINER values.
index 4b4e7899dc17c27fb958fde999123743e8bcd1a3..adaa30f55c18e5477460cb36401b709cdab2d20f 100644 (file)
@@ -189,7 +189,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)