diff options
author | Mark Mitchell <mark@codesourcery.com> | 2007-02-26 21:14:24 +0000 |
---|---|---|
committer | Mark Mitchell <mmitchel@gcc.gnu.org> | 2007-02-26 21:14:24 +0000 |
commit | 57a4c089e23551d96817d080a2fce4f9e6408343 (patch) | |
tree | 57f11202334c7de856e122ac7abb9d371c2ac950 /gcc/c-common.h | |
parent | 7276d368253cf2ba1d171f49dc21d90a1b897de7 (diff) | |
download | gcc-57a4c089e23551d96817d080a2fce4f9e6408343.tar.gz |
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
Diffstat (limited to 'gcc/c-common.h')
-rw-r--r-- | gcc/c-common.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/c-common.h b/gcc/c-common.h index 4e25ede957c..e52b83208af 100644 --- a/gcc/c-common.h +++ b/gcc/c-common.h @@ -988,4 +988,11 @@ extern tree c_omp_remap_decl (tree, bool); #define GCC_DIAG_STYLE __gcc_cdiag__ #endif +/* Functions called automatically at the beginning and end of execution. */ +extern GTY (()) tree static_ctors; +extern GTY (()) tree static_dtors; + +extern void c_record_cdtor_fn (tree); +extern void c_build_cdtor_fns (void); + #endif /* ! GCC_C_COMMON_H */ |