Mercurial > hg > CbC > CbC_gcc
diff gcc/lto-section-out.c @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children | 1830386684a0 |
line wrap: on
line diff
--- a/gcc/lto-section-out.c Fri Oct 27 22:46:09 2017 +0900 +++ b/gcc/lto-section-out.c Thu Oct 25 07:37:49 2018 +0900 @@ -1,6 +1,6 @@ /* Functions for writing LTO sections. - Copyright (C) 2009-2017 Free Software Foundation, Inc. + Copyright (C) 2009-2018 Free Software Foundation, Inc. Contributed by Kenneth Zadeck <zadeck@naturalbridge.com> This file is part of GCC. @@ -30,6 +30,7 @@ #include "data-streamer.h" #include "langhooks.h" #include "lto-compress.h" +#include "print-tree.h" static vec<lto_out_decl_state_ptr> decl_state_stack; @@ -66,6 +67,15 @@ { lang_hooks.lto.begin_section (name); + if (streamer_dump_file) + { + if (flag_dump_unnumbered || flag_dump_noaddr) + fprintf (streamer_dump_file, "Creating %ssection\n", + compress ? "compressed " : ""); + else + fprintf (streamer_dump_file, "Creating %ssection %s\n", + compress ? "compressed " : "", name); + } gcc_assert (compression_stream == NULL); if (compress) compression_stream = lto_start_compression (lto_append_data, NULL); @@ -158,6 +168,12 @@ if (!existed_p) { index = encoder->trees.length (); + if (streamer_dump_file) + { + print_node_brief (streamer_dump_file, " Encoding indexable ", + name, 4); + fprintf (streamer_dump_file, " as %i \n", index); + } encoder->trees.safe_push (name); new_entry_p = TRUE; }