aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-tree.h
diff options
context:
space:
mode:
authorZack Weinberg <zack@codesourcery.com>2004-07-08 19:50:17 +0000
committerZack Weinberg <zack@gcc.gnu.org>2004-07-08 19:50:17 +0000
commit36c1b0def4a4672a93e846c610e19a1a15f4e17d (patch)
treeb5d1f5dae24cf0c3994f99d911989c25185e3b7d /gcc/c-tree.h
parent5b02f0e0046d946792d7e05b569cb6d2c54442ee (diff)
downloadgcc-36c1b0def4a4672a93e846c610e19a1a15f4e17d.zip
gcc-36c1b0def4a4672a93e846c610e19a1a15f4e17d.tar.gz
gcc-36c1b0def4a4672a93e846c610e19a1a15f4e17d.tar.bz2
c-decl.c (static_ctors, [...]): Make static.
* c-decl.c (static_ctors, static_dtors): Make static. (pop_file_scope): Call c_common_write_pch and cgraph_finalize_compilation_unit here. (build_cdtor): Moved here from c-objc-common.c; simplify. (c_write_global_declarations_1): Clarify comment. (c_write_global_declarations): Close the external scope before doing anything else. Call build_cdtor, cgraph_optimize, and mudflap_finish_file here. * c-lang.c (finish_file): Don't call c_objc_common_finish_file. Clarify comment. * c-objc-common.c: No need to include cgraph.h. (build_cdtor): Moved to c-decl.c. (c_objc_common_finish_file): Delete. * c-tree.h: Update to match. * objc/objc-act.c (finish_file): Don't call c_objc_common_finish_file. (generate_static_references): Set TREE_USED before calling finish_decl. Eliminate unnecessary dummy declaration. Call rest_of_decl_compilation on the static_instances_decl. From-SVN: r84307
Diffstat (limited to 'gcc/c-tree.h')
-rw-r--r--gcc/c-tree.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/gcc/c-tree.h b/gcc/c-tree.h
index 6083b1f..5eb2e81 100644
--- a/gcc/c-tree.h
+++ b/gcc/c-tree.h
@@ -197,7 +197,6 @@ extern int c_cannot_inline_tree_fn (tree *);
extern bool c_objc_common_init (void);
extern bool c_missing_noreturn_ok_p (tree);
extern tree c_objc_common_truthvalue_conversion (tree expr);
-extern void c_objc_common_finish_file (void);
extern int defer_fn (tree);
extern bool c_warn_unused_global_decl (tree);
extern void c_initialize_diagnostics (diagnostic_context *);
@@ -298,9 +297,6 @@ extern void *get_current_scope (void);
extern void objc_mark_locals_volatile (void *);
extern void c_write_global_declarations (void);
-extern GTY(()) tree static_ctors;
-extern GTY(()) tree static_dtors;
-
/* In order for the format checking to accept the C frontend
diagnostic framework extensions, you must include this file before
toplev.h, not after. */