lto-section-out.c (lto_begin_section): Do not print section name for noaddr and unnum...
authorJan Hubicka <hubicka@ucw.cz>
Mon, 25 Jun 2018 12:29:45 +0000 (14:29 +0200)
committerJan Hubicka <hubicka@gcc.gnu.org>
Mon, 25 Jun 2018 12:29:45 +0000 (12:29 +0000)
* lto-section-out.c (lto_begin_section): Do not print section
name for noaddr and unnumbered dumps.

From-SVN: r262013

gcc/ChangeLog
gcc/lto-section-out.c

index 0211050bd9ab9c693974bf030b41110d41f96296..1c44a196cfe60358c1180c1f1d577b4c7d3ee761 100644 (file)
@@ -1,3 +1,8 @@
+2018-06-25  Jan Hubicka  <hubicka@ucw.cz>
+
+       * lto-section-out.c (lto_begin_section): Do not print section
+       name for noaddr and unnumbered dumps.
+
 2018-06-25  Richard Biener  <rguenther@suse.de>
 
        * tree-vectorizer.h (struct vec_info_shared): New structure
index 2dfe64c049a6ff3ffe05d71ef41d8efa6e33f333..962650276670664f51eea2bf1c12c7a7c6ce03d2 100644 (file)
@@ -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);