aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/genemit.c5
2 files changed, 10 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index b35f8bc..7b5548a 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2014-09-01 Segher Boessenkool <segher@kernel.crashing.org>
+
+ * genemit.c: Include dumpfile.h.
+ (gen_split): Print name of splitter function to dump file.
+
2014-09-01 Richard Biener <rguenther@suse.de>
* tree-ssa-struct-aliases.c (find_func_aliases_for_builtin_call):
diff --git a/gcc/genemit.c b/gcc/genemit.c
index 1bc73f0..65434b5 100644
--- a/gcc/genemit.c
+++ b/gcc/genemit.c
@@ -578,6 +578,10 @@ gen_split (rtx split)
if (GET_CODE (split) == DEFINE_PEEPHOLE2)
output_peephole2_scratches (split);
+ printf (" if (dump_file)\n");
+ printf (" fprintf (dump_file, \"Splitting with gen_%s_%d\\n\");\n",
+ name, insn_code_number);
+
printf (" start_sequence ();\n");
/* The fourth operand of DEFINE_SPLIT is some code to be executed
@@ -813,6 +817,7 @@ from the machine description file `md'. */\n\n");
printf ("#include \"tm-constrs.h\"\n");
printf ("#include \"ggc.h\"\n");
printf ("#include \"basic-block.h\"\n");
+ printf ("#include \"dumpfile.h\"\n");
printf ("#include \"target.h\"\n\n");
printf ("#define FAIL return (end_sequence (), _val)\n");
printf ("#define DONE return (_val = get_insns (), end_sequence (), _val)\n\n");