cppinit.c (append_include_chain): Always pay attention to cxx_aware when setting...
authorZack Weinberg <zack@codesourcery.com>
Fri, 31 May 2002 22:57:55 +0000 (22:57 +0000)
committerZack Weinberg <zack@gcc.gnu.org>
Fri, 31 May 2002 22:57:55 +0000 (22:57 +0000)
* cppinit.c (append_include_chain): Always pay attention to
cxx_aware when setting new->sysp.  Remove ATTRIBUTE_UNUSED
marker on argument.

From-SVN: r54124

gcc/ChangeLog
gcc/cppinit.c

index 5524591c4eba3ff00951544a1b7200f6f211d29b..7e5103ee9e1a09b6d4ce3186d3135e059e1f1092 100644 (file)
@@ -1,3 +1,9 @@
+2002-05-31  Zack Weinberg  <zack@codesourcery.com>
+
+       * cppinit.c (append_include_chain): Always pay attention to
+       cxx_aware when setting new->sysp.  Remove ATTRIBUTE_UNUSED
+       marker on argument.
+
 2002-05-31  Kazu Hirata  <kazu@cs.umass.edu>
 
        * target.h: Fix formatting.
index 41842cb38329fc69fe16c7a6b1f33e409c5931aa..2715fbac75eca47c0d0335a1f8519abb0a0260d1 100644 (file)
@@ -207,7 +207,7 @@ append_include_chain (pfile, dir, path, cxx_aware)
      cpp_reader *pfile;
      char *dir;
      int path;
-     int cxx_aware ATTRIBUTE_UNUSED;
+     int cxx_aware;
 {
   struct cpp_pending *pend = CPP_OPTION (pfile, pending);
   struct search_path *new;
@@ -252,11 +252,7 @@ append_include_chain (pfile, dir, path, cxx_aware)
      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
     new->sysp = cxx_aware ? 1 : 2;
-#endif
   else
     new->sysp = 0;
   new->name_map = NULL;