summaryrefslogtreecommitdiff
path: root/gcc/cp/decl2.c
diff options
context:
space:
mode:
authornathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4>2017-05-22 12:25:06 +0000
committernathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4>2017-05-22 12:25:06 +0000
commit88df626456751b8e104571abf651b2fe845aa71d (patch)
treead8286ae024d6c89243ce9157d5befffd07d61d4 /gcc/cp/decl2.c
parent8e51506abe66a1fea58792dc74ee39a4f8897f3d (diff)
downloadgcc-88df626456751b8e104571abf651b2fe845aa71d.tar.gz
gcc/
* doc/invoke.texi (fdump-translation-unit): Delete documentation. (fdump-lang): Document 'raw' option. * dumpfile.h (TDI_tu): Delete. * dumpfile.c (dump_files): Remove translation-unit. (FIRST_AUTO_NUMBERED_DUMP): Decrement. gcc/cp/ * cp-objcp-common.c (cp_register_dumps): Register raw dumper. * cp-tree.h (raw_dump_id): Declare. * decl2.c (raw_dump_id): Define. (dump_tu): Use raw_dump_id. gcc/c/ * c-decl.c (c_parse_final_cleanups): Drop TDI_tu handling. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@248333 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cp/decl2.c')
-rw-r--r--gcc/cp/decl2.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/gcc/cp/decl2.c b/gcc/cp/decl2.c
index a950d5e970e..7247b0fb4fa 100644
--- a/gcc/cp/decl2.c
+++ b/gcc/cp/decl2.c
@@ -49,6 +49,9 @@ along with GCC; see the file COPYING3. If not see
#include "c-family/c-ada-spec.h"
#include "asan.h"
+/* Id for dumping the raw trees. */
+int raw_dump_id;
+
extern cpp_reader *parse_in;
/* This structure contains information about the initializations
@@ -4362,12 +4365,10 @@ static void
dump_tu (void)
{
dump_flags_t flags;
- FILE *stream = dump_begin (TDI_tu, &flags);
-
- if (stream)
+ if (FILE *stream = dump_begin (raw_dump_id, &flags))
{
dump_node (global_namespace, flags & ~TDF_SLIM, stream);
- dump_end (TDI_tu, stream);
+ dump_end (raw_dump_id, stream);
}
}