* cp-tree.h (CAN_HAVE_FULL_LANG_DECL_P): New macro.
commitc6138f2ddb9b77a319ecbd4f6f7be5fdfa48bdbb
authormmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 16 Aug 1999 22:08:42 +0000 (16 22:08 +0000)
committermmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 16 Aug 1999 22:08:42 +0000 (16 22:08 +0000)
treefd0402d39944fba3227e3d96dfb3cd381a03ca61
parent1ddceec8ad1995a0eaa8c430755861005d0f5e2a
* cp-tree.h (CAN_HAVE_FULL_LANG_DECL_P): New macro.
* class.c (build_vtable): Use build_lang_field_decl to build the
VAR_DECLs for vtables.
(prepare_fresh_vtable): Likewise.
* decl.c (duplicate_decls): Only copy DECL_SAVED_TREE if
CAN_HAVE_FULL_LANG_DECL_P.
(push_using_decl): Use build_lang_decl to build USING_DECLs.
(grokdeclarator): Use build_lang_decl to build TYPE_DECLs.
* lex.c (retrofit_lang_decl): Check CAN_HAVE_FULL_LANG_DECL_P.
(build_lang_field_decl): Likewise.
(copy_lang_decl): Use CAN_HAVE_FULLLANG_DECL_P to decide how much
to copy.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@28731 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/class.c
gcc/cp/cp-tree.h
gcc/cp/decl.c
gcc/cp/lex.c