cp-tree.h (CAN_HAVE_FULL_LANG_DECL_P): New macro.
authorMark Mitchell <mark@codesourcery.com>
Mon, 16 Aug 1999 22:08:42 +0000 (22:08 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Mon, 16 Aug 1999 22:08:42 +0000 (22:08 +0000)
commitb0d065155dcf58badec4abea8652c1b06b66a2e1
treefd0402d39944fba3227e3d96dfb3cd381a03ca61
parent58e787081dad89dd64099d2a039651a2bcd29df6
cp-tree.h (CAN_HAVE_FULL_LANG_DECL_P): New macro.

* 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.

From-SVN: r28731
gcc/cp/ChangeLog
gcc/cp/class.c
gcc/cp/cp-tree.h
gcc/cp/decl.c
gcc/cp/lex.c