summaryrefslogtreecommitdiff
path: root/gcc/toplev.h
diff options
context:
space:
mode:
authormanu <manu@138bc75d-0d04-0410-961f-82ee72b054a4>2015-09-16 21:25:28 +0000
committermanu <manu@138bc75d-0d04-0410-961f-82ee72b054a4>2015-09-16 21:25:28 +0000
commit22c5bcc6d784aa4a4d392ce319ddee5e90d6be79 (patch)
treeb82a31d5d53ebfe4aa79b8cf8362be98cba22d67 /gcc/toplev.h
parent5c4802f1e03c96bf95647ec751fc17a4146ade28 (diff)
downloadgcc-22c5bcc6d784aa4a4d392ce319ddee5e90d6be79.tar.gz
Move check_global_declaration from toplev.c to cgraphunit.c
Unfortunately, toplev.c is a kitchen sink of things that do not belong anywhere in particular. For example, check_global_declarations is only used in cgraphunit.c. Moving it there allows us to make it static and remove one call to symtab_node::get. gcc/ChangeLog: 2015-09-16 Manuel López-Ibáñez <manu@gcc.gnu.org> * toplev.h (check_global_declaration): Remove declaration. * toplev.c (check_global_declaration): Move to ... * cgraphunit.c: ... here. Make it static and pass a symtab_node *. (analyze_functions): Update call. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@227835 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/toplev.h')
-rw-r--r--gcc/toplev.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/gcc/toplev.h b/gcc/toplev.h
index 21d9a75ed4f..e613fec5894 100644
--- a/gcc/toplev.h
+++ b/gcc/toplev.h
@@ -61,7 +61,6 @@ extern void announce_function (tree);
extern void wrapup_global_declaration_1 (tree);
extern bool wrapup_global_declaration_2 (tree);
extern bool wrapup_global_declarations (tree *, int);
-extern void check_global_declaration (tree);
extern void global_decl_processing (void);