Hi,
this patch prevents lto-section-out to dump section name into the
dump file when noaddr or nonnumbered is used because it contains
a random seed.

regtested x86_64-linux, comitted.

Honza

        * lto-section-out.c (lto_begin_section): Do not print section
        name for noaddr and unnumbered dumps.
Index: lto-section-out.c
===================================================================
--- lto-section-out.c   (revision 261995)
+++ lto-section-out.c   (working copy)
@@ -68,8 +68,14 @@ lto_begin_section (const char *name, boo
   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);

Reply via email to