Commit 39e5db1a by Zack Weinberg Committed by Zack Weinberg

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
parent 41077ce4
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> 2002-05-31 Kazu Hirata <kazu@cs.umass.edu>
* target.h: Fix formatting. * target.h: Fix formatting.
......
...@@ -207,7 +207,7 @@ append_include_chain (pfile, dir, path, cxx_aware) ...@@ -207,7 +207,7 @@ append_include_chain (pfile, dir, path, cxx_aware)
cpp_reader *pfile; cpp_reader *pfile;
char *dir; char *dir;
int path; int path;
int cxx_aware ATTRIBUTE_UNUSED; int cxx_aware;
{ {
struct cpp_pending *pend = CPP_OPTION (pfile, pending); struct cpp_pending *pend = CPP_OPTION (pfile, pending);
struct search_path *new; struct search_path *new;
...@@ -252,11 +252,7 @@ append_include_chain (pfile, dir, path, cxx_aware) ...@@ -252,11 +252,7 @@ append_include_chain (pfile, dir, path, cxx_aware)
include files since these two lists are really just a concatenation include files since these two lists are really just a concatenation
of one "system" list. */ of one "system" list. */
if (path == SYSTEM || path == AFTER) if (path == SYSTEM || path == AFTER)
#ifdef NO_IMPLICIT_EXTERN_C
new->sysp = 1;
#else
new->sysp = cxx_aware ? 1 : 2; new->sysp = cxx_aware ? 1 : 2;
#endif
else else
new->sysp = 0; new->sysp = 0;
new->name_map = NULL; new->name_map = NULL;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment