diff options
author | mmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-04-19 22:49:48 +0000 |
---|---|---|
committer | mmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-04-19 22:49:48 +0000 |
commit | 4b1984f57a55c32281e70753dff25b118ee0ac6c (patch) | |
tree | be41a31f61cfc5955ed9ac031129b966e6b6e950 /gcc/cp/lex.c | |
parent | 10f5722291a849f837907a4304914e1b212e9de4 (diff) | |
download | gcc-4b1984f57a55c32281e70753dff25b118ee0ac6c.tar.gz |
* cp-tree.h (DECL_LANGUAGE): Don't assume DECL_LANG_SPECIFIC is
set.
(SET_DECL_LANGUAGE): New macro.
* decl.c (duplicate_decls): Use SET_DECL_LANGUAGE.
(pushdecl): Likewise.
(build_library_fn_1): Likewise.
(build_cp_library_fn): Likewise.
(grokfndecl): Likewise.
(grokvardecl): Mark `extern "C"' variables as having C linkage.
* decl2.c (grokclassfn): Use SET_DECL_LANGUAGE.
* lex.c (retrofit_lang_decl): Likewise.
* mangle.c (mangle_decl_string): Don't mangle the names of
variables declared with C language linkage.
* semantics.c (finish_member_declaration): Use SET_DECL_LANGUAGE.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@41430 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cp/lex.c')
-rw-r--r-- | gcc/cp/lex.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/cp/lex.c b/gcc/cp/lex.c index 5120f204ed3..cb6a4d92461 100644 --- a/gcc/cp/lex.c +++ b/gcc/cp/lex.c @@ -1509,11 +1509,11 @@ retrofit_lang_decl (t) DECL_LANG_SPECIFIC (t) = ld; if (current_lang_name == lang_name_cplusplus) - DECL_LANGUAGE (t) = lang_cplusplus; + SET_DECL_LANGUAGE (t, lang_cplusplus); else if (current_lang_name == lang_name_c) - DECL_LANGUAGE (t) = lang_c; + SET_DECL_LANGUAGE (t, lang_c); else if (current_lang_name == lang_name_java) - DECL_LANGUAGE (t) = lang_java; + SET_DECL_LANGUAGE (t, lang_java); else my_friendly_abort (64); #ifdef GATHER_STATISTICS |