]> git.ipfire.org Git - thirdparty/gcc.git/commit
c-decl.c (static_ctors): Move to c-common.c.
authorMark Mitchell <mark@codesourcery.com>
Mon, 26 Feb 2007 21:14:24 +0000 (21:14 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Mon, 26 Feb 2007 21:14:24 +0000 (21:14 +0000)
commit57a4c089e23551d96817d080a2fce4f9e6408343
tree57f11202334c7de856e122ac7abb9d371c2ac950
parent7276d368253cf2ba1d171f49dc21d90a1b897de7
c-decl.c (static_ctors): Move to c-common.c.

* c-decl.c (static_ctors): Move to c-common.c.
(static_dtors): Likewise.
(finish_function): Use c_record_cdtor_fn.
(build_cdtor): Move to c-common.c.
(c_write_global_declarations): Use c_build_cdtor_fns.
* c-common.h (static_ctors): Declare.
(static_dtors): Likewise.
(c_record_cdtor_fn): Likewise.
(c_build_cdtor_fns): Likewise.
* c-common.c (static_ctors): New variable.
(static_dtors): Likewise.
(c_record_cdtor_fn): New function.
(build_cdtor): Move from c-decl.c
(c_build_cdtor_fns): New function.

* semantics.c (expand_or_defer_fn): Call c_record_cdtor_fn.
* decl2.c (cp_write_gloabl_declarations): Call c_build_cdtor_fns.

From-SVN: r122341
gcc/ChangeLog
gcc/c-common.c
gcc/c-common.h
gcc/c-decl.c
gcc/cp/ChangeLog
gcc/cp/decl2.c
gcc/cp/semantics.c