summaryrefslogtreecommitdiff
path: root/gcc/genemit.c
diff options
context:
space:
mode:
authorsegher <segher@138bc75d-0d04-0410-961f-82ee72b054a4>2014-09-01 14:30:00 +0000
committersegher <segher@138bc75d-0d04-0410-961f-82ee72b054a4>2014-09-01 14:30:00 +0000
commit0eb20de5d727084fb905ae493a70f9352d741493 (patch)
tree2657d6e9d0acc0a155052b35b2f206f2d33424de /gcc/genemit.c
parent7a8610aff6843994c18fce57c7d47a91e7d77010 (diff)
downloadgcc-0eb20de5d727084fb905ae493a70f9352d741493.tar.gz
2014-09-01 Segher Boessenkool <segher@kernel.crashing.org>
* genemit.c: Include dumpfile.h. (gen_split): Print name of splitter function to dump file. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@214796 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/genemit.c')
-rw-r--r--gcc/genemit.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/genemit.c b/gcc/genemit.c
index 1bc73f0ef07..65434b5367b 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");