semantics.c (expand_or_defer_fn): Do not call c_record_cdtor_fn.
authorJan Hubicka <jh@suse.cz>
Fri, 11 May 2007 12:18:17 +0000 (14:18 +0200)
committerJan Hubicka <hubicka@gcc.gnu.org>
Fri, 11 May 2007 12:18:17 +0000 (12:18 +0000)
commit7be82279042841a50c9a3464fce35c471fa07f1c
tree49ba9f2d2dd225ffee2443da3491e4fa57aa17a0
parent2a5fce6d487573f7f330d721da83fd9881fdb06a
semantics.c (expand_or_defer_fn): Do not call c_record_cdtor_fn.

* semantics.c (expand_or_defer_fn): Do not call c_record_cdtor_fn.
* decl2.c (start_objects): ctors and dtors are no longer public.
(cp_write_global_declarations): Do not call c_build_cdtor_fns.

* cgraphunit.c: Include gt-cgraphunit.h
(static_ctors, static_dtors): New static vars.
(record_cdtor_fn, build_cdtor, cgraph_build_cdtor_fns): New functions,
based on implementation in c-common.c
(cgraph_finalize_function): Call record_cdtor_fn.
(cgraph_optimize): Call cgraph_build_cdtor_fns.
* decl.c (finish_function): Do not call c_record_cdtor_fn.
(c_write_global_declarations): Do not call c_build_cdtor_fns.
* c-common.c (static_ctors, static_dtors, c_record_cdtor_fn,
build_cdtor, c_build_cdtor_fns): Remove.
* c-common.h (static_ctors, static_dtors, c_record_cdtor_fn,
c_build_cdtor_fns): Remove prototype.

From-SVN: r124618
gcc/ChangeLog
gcc/Makefile.in
gcc/c-common.c
gcc/c-common.h
gcc/c-decl.c
gcc/cgraphunit.c
gcc/cp/ChangeLog
gcc/cp/decl2.c
gcc/cp/semantics.c