(start_function): Handle setting C_C_D here.
authorRichard Kenner <kenner@gcc.gnu.org>
Tue, 13 Jun 1995 22:20:17 +0000 (18:20 -0400)
committerRichard Kenner <kenner@gcc.gnu.org>
Tue, 13 Jun 1995 22:20:17 +0000 (18:20 -0400)
commit5f34005f06e800994dd6a305788cadd89488e92f
treeb5c0540e018400ac13a652e7ab0c5733d1531ee0
parent8bf41929899a91163f6b45ed5965fb5be195abd3
(start_function): Handle setting C_C_D here.

(set_C_C_D): Removed.
(struct saved_scope): Remove class_decl.
(push_to_top_level): Don't save current_class_decl.
(pop_from_top_level): Don't restore current_class_decl or C_C_D.
(struct cp_function): Add C_C_D.
(push_cp_function_context): Save C_C_D.
(pop_cp_function_context): Restore C_C_D.
(set_C_C_D): New function.
(pop_from_top_level, start_function, pop_cp_function_context): Call it.
Lose all references
to current_vtable_decl, CLASSTYPE_INST_VAR and CLASSTYPE_VTBL_PTR.
(push_cp_function_context): Save current_class_decl.
(pop_cp_function_context): Restore current_class_decl and set C_C_D.
(pop_from_top_level): Don't use CLASSTYPE_INST_VAR to set C_C_D.
(start_function): Ditto.

From-SVN: r9935
gcc/cp/decl.c