From: Jan Hubicka Date: Mon, 25 Jun 2018 12:29:45 +0000 (+0200) Subject: lto-section-out.c (lto_begin_section): Do not print section name for noaddr and unnum... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=aa7c78ca059c8c3d4f14f3ce445a6cc1367be02d;p=gcc.git lto-section-out.c (lto_begin_section): Do not print section name for noaddr and unnumbered dumps. * lto-section-out.c (lto_begin_section): Do not print section name for noaddr and unnumbered dumps. From-SVN: r262013 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 0211050bd9a..1c44a196cfe 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2018-06-25 Jan Hubicka + + * lto-section-out.c (lto_begin_section): Do not print section + name for noaddr and unnumbered dumps. + 2018-06-25 Richard Biener * tree-vectorizer.h (struct vec_info_shared): New structure diff --git a/gcc/lto-section-out.c b/gcc/lto-section-out.c index 2dfe64c049a..96265027667 100644 --- a/gcc/lto-section-out.c +++ b/gcc/lto-section-out.c @@ -68,8 +68,14 @@ lto_begin_section (const char *name, bool compress) lang_hooks.lto.begin_section (name); if (streamer_dump_file) - fprintf (streamer_dump_file, "Creating %ssection %s\n", - compress ? "compressed " : "", name); + { + 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);