summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsegher <segher@138bc75d-0d04-0410-961f-82ee72b054a4>2017-07-24 19:48:57 +0000
committersegher <segher@138bc75d-0d04-0410-961f-82ee72b054a4>2017-07-24 19:48:57 +0000
commitcb1f1b8bb3711c2992aed5caf28daae9f28df0e9 (patch)
treedf3d876f059f7fb387b7e35ada26649945aae468
parentf5d6296721d3d0ec832aff481d9704e6f6b48e30 (diff)
downloadgcc-cb1f1b8bb3711c2992aed5caf28daae9f28df0e9.tar.gz
passes: Print a header in emergency_dump_function
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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@250481 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/passes.c1
2 files changed, 6 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 897c605701d..46c32a7df26 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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>
diff --git a/gcc/passes.c b/gcc/passes.c
index 374f6f77897..f5791ac806a 100644
--- a/gcc/passes.c
+++ b/gcc/passes.c
@@ -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);
}