* cp-tree.h (DECL_LANGUAGE): Don't assume DECL_LANG_SPECIFIC is
commit2460723b05f9b251b18fdcd92a9bf42d1f17b823
authormmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 19 Apr 2001 22:40:07 +0000 (19 22:40 +0000)
committermmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 19 Apr 2001 22:40:07 +0000 (19 22:40 +0000)
tree1b05a9646623cc6cba6c0926299876c5d1b84934
parentf1afbe73792d1520aba06b003fcfa089699e5d24
* 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/branches/gcc-3_0-branch@41429 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]