From 098ba49c7cd4d3f6202b6472aec8c33b68bbada7 Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Fri, 22 May 2020 16:31:21 +0200 Subject: [PATCH] Add debug dump for integer_cst streaming. * tree-streamer-out.c (streamer_write_integer_cst): Add debug dump. --- gcc/ChangeLog | 1 + gcc/tree-streamer-out.c | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 48a9a5f9701..b0199510aed 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -8,6 +8,7 @@ (lto_output_tree): Improve dumping; do not stream ref when not needed. (produce_asm_for_decls): Fix whitespace. * tree-streamer-out.c (streamer_write_tree_header): Add dump. + * tree-streamer-out.c (streamer_write_integer_cst): Add debug dump. 2020-05-22 Hongtao.liu diff --git a/gcc/tree-streamer-out.c b/gcc/tree-streamer-out.c index 724eaf5e54d..4e8a12c71e6 100644 --- a/gcc/tree-streamer-out.c +++ b/gcc/tree-streamer-out.c @@ -1025,6 +1025,12 @@ streamer_write_integer_cst (struct output_block *ob, tree cst, bool ref_p) int i; int len = TREE_INT_CST_NUNITS (cst); gcc_assert (!TREE_OVERFLOW (cst)); + if (streamer_dump_file) + { + print_node_brief (streamer_dump_file, " Streaming integer ", + cst, 4); + fprintf (streamer_dump_file, "\n"); + } streamer_write_record_start (ob, LTO_integer_cst); stream_write_tree (ob, TREE_TYPE (cst), ref_p); /* We're effectively streaming a non-sign-extended wide_int here, -- 2.30.2