aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorZack Weinberg <zack@codesourcery.com>2002-05-31 22:57:55 +0000
committerZack Weinberg <zack@gcc.gnu.org>2002-05-31 22:57:55 +0000
commit39e5db1a7c9714f7a6c3f5f24617c81e8f8d87b2 (patch)
tree231c2597b85cf045fa258b57556e440e5015ec63 /gcc
parent41077ce4b37a093155987bdf671bdf91510f9067 (diff)
downloadgcc-39e5db1a7c9714f7a6c3f5f24617c81e8f8d87b2.zip
gcc-39e5db1a7c9714f7a6c3f5f24617c81e8f8d87b2.tar.gz
gcc-39e5db1a7c9714f7a6c3f5f24617c81e8f8d87b2.tar.bz2
cppinit.c (append_include_chain): Always pay attention to cxx_aware when setting new->sysp.
* cppinit.c (append_include_chain): Always pay attention to cxx_aware when setting new->sysp. Remove ATTRIBUTE_UNUSED marker on argument. From-SVN: r54124
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/cppinit.c6
2 files changed, 7 insertions, 5 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 5524591..7e5103e 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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.
diff --git a/gcc/cppinit.c b/gcc/cppinit.c
index 41842cb..2715fba 100644
--- a/gcc/cppinit.c
+++ b/gcc/cppinit.c
@@ -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;