passes: Print a header in emergency_dump_function
authorSegher Boessenkool <segher@kernel.crashing.org>
Mon, 24 Jul 2017 19:48:57 +0000 (21:48 +0200)
committerSegher Boessenkool <segher@gcc.gnu.org>
Mon, 24 Jul 2017 19:48:57 +0000 (21:48 +0200)
Currently the emergency dump has no separation whatsoever from any
previous output in the dump file, making it harder than necessary
to find.

* passes.c (emergency_dump_function): Print some empty lines and a
header before the RTL dump.

From-SVN: r250481

gcc/ChangeLog
gcc/passes.c

index 897c605..46c32a7 100644 (file)
@@ -1,5 +1,10 @@
 2017-07-24  Segher Boessenkool  <segher@kernel.crashing.org>
 
+       * passes.c (emergency_dump_function): Print some empty lines and a
+       header before the RTL dump.
+
+2017-07-24  Segher Boessenkool  <segher@kernel.crashing.org>
+
        * cfgrtl.c (rtl_dump_bb): Don't call NEXT_INSN on NULL.
 
 2017-07-24  Wilco Dijkstra  <wdijkstr@arm.com>
index 374f6f7..f5791ac 100644 (file)
@@ -1796,6 +1796,7 @@ emergency_dump_function ()
   if (!dump_file || !cfun)
     return;
   fnotice (stderr, "dump file: %s\n", dump_file_name);
+  fprintf (dump_file, "\n\n\nEMERGENCY DUMP:\n\n");
   execute_function_dump (cfun, current_pass);
 }