From aa7c78ca059c8c3d4f14f3ce445a6cc1367be02d Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Mon, 25 Jun 2018 14:29:45 +0200 Subject: [PATCH] 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 --- gcc/ChangeLog | 5 +++++ gcc/lto-section-out.c | 10 ++++++++-- 2 files changed, 13 insertions(+), 2 deletions(-) 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); -- 2.30.2