aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree.c
diff options
context:
space:
mode:
authorManuel López-Ibáñez <manu@gcc.gnu.org>2012-04-24 19:21:21 +0000
committerManuel López-Ibáñez <manu@gcc.gnu.org>2012-04-24 19:21:21 +0000
commit21e417158cf179bb9aa0ae0ef92afd1a31a65b4b (patch)
tree03ddeb5ba2cc3f34ce5c10654d25ba5d70db6fb7 /gcc/tree.c
parent1a985a5642607f9715657aaea7e03033130065c1 (diff)
downloadgcc-21e417158cf179bb9aa0ae0ef92afd1a31a65b4b.zip
gcc-21e417158cf179bb9aa0ae0ef92afd1a31a65b4b.tar.gz
gcc-21e417158cf179bb9aa0ae0ef92afd1a31a65b4b.tar.bz2
tree-pretty-print.h (default_tree_printer): Do not declare.
2012-04-24 Manuel López-Ibáñez <manu@gcc.gnu.org> 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
Diffstat (limited to 'gcc/tree.c')
-rw-r--r--gcc/tree.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/gcc/tree.c b/gcc/tree.c
index b0d52b2..7837d45 100644
--- a/gcc/tree.c
+++ b/gcc/tree.c
@@ -38,7 +38,7 @@ along with GCC; see the file COPYING3. If not see
#include "tm_p.h"
#include "function.h"
#include "obstack.h"
-#include "toplev.h"
+#include "toplev.h" /* get_random_seed */
#include "ggc.h"
#include "hashtab.h"
#include "filenames.h"
@@ -5255,9 +5255,7 @@ free_lang_data (void)
devise a separate, middle-end private scheme for it. */
/* Reset diagnostic machinery. */
- diagnostic_starter (global_dc) = default_tree_diagnostic_starter;
- diagnostic_finalizer (global_dc) = default_diagnostic_finalizer;
- diagnostic_format_decoder (global_dc) = default_tree_printer;
+ tree_diagnostics_defaults (global_dc);
return 0;
}