diff options
author | Jan Hubicka <jh@suse.cz> | 2007-05-11 14:18:17 +0200 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2007-05-11 12:18:17 +0000 |
commit | 7be82279042841a50c9a3464fce35c471fa07f1c (patch) | |
tree | 49ba9f2d2dd225ffee2443da3491e4fa57aa17a0 /gcc/cp/semantics.c | |
parent | 2a5fce6d487573f7f330d721da83fd9881fdb06a (diff) | |
download | gcc-7be82279042841a50c9a3464fce35c471fa07f1c.zip gcc-7be82279042841a50c9a3464fce35c471fa07f1c.tar.gz gcc-7be82279042841a50c9a3464fce35c471fa07f1c.tar.bz2 |
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
Diffstat (limited to 'gcc/cp/semantics.c')
-rw-r--r-- | gcc/cp/semantics.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/gcc/cp/semantics.c b/gcc/cp/semantics.c index a920bfb..a484c05 100644 --- a/gcc/cp/semantics.c +++ b/gcc/cp/semantics.c @@ -3188,10 +3188,6 @@ expand_or_defer_fn (tree fn) return; } - /* Keep track of functions declared with the "constructor" and - "destructor" attribute. */ - c_record_cdtor_fn (fn); - /* We make a decision about linkage for these functions at the end of the compilation. Until that point, we do not want the back end to output them -- but we do want it to see the bodies of |