OSDN Git Service

* cp-tree.h (DECL_LANGUAGE): Don't assume DECL_LANG_SPECIFIC is
authormmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 19 Apr 2001 22:49:48 +0000 (22:49 +0000)
committermmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 19 Apr 2001 22:49:48 +0000 (22:49 +0000)
commit4b1984f57a55c32281e70753dff25b118ee0ac6c
treebe41a31f61cfc5955ed9ac031129b966e6b6e950
parent10f5722291a849f837907a4304914e1b212e9de4
* 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
gcc/cp/ChangeLog
gcc/cp/cp-tree.h
gcc/cp/decl.c
gcc/cp/decl2.c
gcc/cp/lex.c
gcc/cp/mangle.c
gcc/cp/semantics.c
gcc/testsuite/g++.old-deja/g++.other/linkage7.C [new file with mode: 0644]