From 21e417158cf179bb9aa0ae0ef92afd1a31a65b4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20L=C3=B3pez-Ib=C3=A1=C3=B1ez?= Date: Tue, 24 Apr 2012 19:21:21 +0000 Subject: tree-pretty-print.h (default_tree_printer): Do not declare. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 2012-04-24 Manuel López-Ibáñez gcc/ * tree-pretty-print.h (default_tree_printer): Do not declare. * tree-diagnostic.c: Include tree-pretty-print.h, tree-pass.h and intl.h. (default_tree_diagnostic_starter): Make static. (default_tree_printer): Move to here. Make static. (tree_diagnostics_defaults): New. * tree-diagnostic.h (default_tree_diagnostic_starter): Do not declare. * tree.c (free_lang_data): Use tree_diagnostics_defaults. * toplev.c: Do not include tree-pass.h. (default_tree_printer): Move from here. (general_init): Use tree_diagnostics_defaults. From-SVN: r186780 --- gcc/tree-diagnostic.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'gcc/tree-diagnostic.h') diff --git a/gcc/tree-diagnostic.h b/gcc/tree-diagnostic.h index 6b8e8e6..819792c 100644 --- a/gcc/tree-diagnostic.h +++ b/gcc/tree-diagnostic.h @@ -49,9 +49,10 @@ along with GCC; see the file COPYING3. If not see ? diagnostic_abstract_origin (DI) \ : current_function_decl) -void default_tree_diagnostic_starter (diagnostic_context *, diagnostic_info *); -extern void diagnostic_report_current_function (diagnostic_context *, - diagnostic_info *); +void diagnostic_report_current_function (diagnostic_context *, + diagnostic_info *); void virt_loc_aware_diagnostic_finalizer (diagnostic_context *, diagnostic_info *); + +void tree_diagnostics_defaults (diagnostic_context *context); #endif /* ! GCC_TREE_DIAGNOSTIC_H */ -- cgit v1.1