Add debug dump for integer_cst streaming.
authorJan Hubicka <jh@suse.cz>
Fri, 22 May 2020 14:31:21 +0000 (16:31 +0200)
committerJan Hubicka <jh@suse.cz>
Fri, 22 May 2020 14:31:21 +0000 (16:31 +0200)
* tree-streamer-out.c (streamer_write_integer_cst): Add debug dump.

gcc/ChangeLog
gcc/tree-streamer-out.c

index 48a9a5f97017c028d1f9f16825fef923177ed5f3..b0199510aed5c99bd33a5e5b96ad36f9d12b94b9 100644 (file)
@@ -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  <hongtao.liu@intel.com>
 
index 724eaf5e54db49cf221124cf0d75b205822916ce..4e8a12c71e6322a016a8e3c750b9d94cfd2fb0cb 100644 (file)
@@ -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,