From eddcad13f9143b38ed45fcdce364316da6701c7c Mon Sep 17 00:00:00 2001 From: Segher Boessenkool Date: Mon, 1 Sep 2014 16:30:00 +0200 Subject: [PATCH] genemit.c: Include dumpfile.h. 2014-09-01 Segher Boessenkool * genemit.c: Include dumpfile.h. (gen_split): Print name of splitter function to dump file. From-SVN: r214796 --- gcc/ChangeLog | 5 +++++ gcc/genemit.c | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index b35f8bc8c86..7b5548afee7 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2014-09-01 Segher Boessenkool + + * genemit.c: Include dumpfile.h. + (gen_split): Print name of splitter function to dump file. + 2014-09-01 Richard Biener * tree-ssa-struct-aliases.c (find_func_aliases_for_builtin_call): 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"); -- 2.30.2