aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-lang.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/c-lang.c')
-rw-r--r--gcc/c-lang.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/gcc/c-lang.c b/gcc/c-lang.c
index cb60002..e2c9063 100644
--- a/gcc/c-lang.c
+++ b/gcc/c-lang.c
@@ -252,9 +252,17 @@ finish_file ()
if (back_end_hook)
(*back_end_hook) (getdecls ());
+
+ {
+ int flags;
+ FILE *stream = dump_begin (TDI_all, &flags);
- if (flag_dump_translation_unit)
- dump_node_to_file (getdecls (), flag_dump_translation_unit);
+ if (stream)
+ {
+ dump_node (getdecls (), flags & ~TDF_SLIM, stream);
+ dump_end (TDI_all, stream);
+ }
+ }
}
/* Called during diagnostic message formatting process to print a