]> gcc.gnu.org Git - gcc.git/commit
class.c (build_vtable): Use build_lang_decl when building vtables, not just build_decl.
authorMark Mitchell <mark@codesourcery.com>
Fri, 30 Apr 1999 16:14:58 +0000 (16:14 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Fri, 30 Apr 1999 16:14:58 +0000 (16:14 +0000)
commit0352cfc868f9080c1e08372feebd768eca4360fc
tree6965f4e433b0b6b93aba9c1755a2c69ed3107fe4
parent3fd91cbd4fe2bcfb7d2db25fe2c2cc2ec2d271b2
class.c (build_vtable): Use build_lang_decl when building vtables, not just build_decl.

* class.c (build_vtable): Use build_lang_decl when building
vtables, not just build_decl.
(prepare_fresh_vtable): Likewise.
* decl.c (wrapup_globals_for_namespace): Mark vtables as
DECL_EXTERNAL when calling wrapup_global_declarations.
* decl2.c (priority_info_s): Add initializations_p and
destructions_p members.
(finish_vtable_vardecl): Use TREE_SYMBOL_REFERENCED, not TREE_USED,
when deciding what vtables to write out.
(ssdf_decls): New variable.
(ssdf_decls_used): Likewise.
(start_static_storage_duration_function): Deal with being called
multiple times.  Avoid inlining this function.
(generate_inits_for_priority): Deal with reuse of priority map.
(get_priority_info): Clear initializations_p and destructions_p.
(do_static_initialization): Tweak comment.
(do_static_destruction): Likewise.  Fix condition on sentries for
destruction.
(generate_ctor_or_dtor_function): Call all of the static storage
duration functions.
(generate_ctor_or_dtor_function_for_priority): Check
initializations_p and destructions_p to see what priorities need
initialization functions.
(finish_file): Rework to generate multiple static storage duration
functions, rather than just one.

From-SVN: r26713
gcc/cp/ChangeLog
gcc/cp/class.c
gcc/cp/decl.c
gcc/cp/decl2.c
This page took 0.065706 seconds and 5 git commands to generate.