From 1ec1fa94b7f20c6f8ebaba6f37d8aa1357420d72 Mon Sep 17 00:00:00 2001 From: Richard Biener Date: Tue, 14 Jul 2015 08:40:51 +0000 Subject: [PATCH] genmatch.c (dt_node::gen_kids_1): Fix case label indenting. 2015-07-14 Richard Biener * genmatch.c (dt_node::gen_kids_1): Fix case label indenting. (decision_tree::gen_gimple): Likewise. From-SVN: r225765 --- gcc/ChangeLog | 5 +++++ gcc/genmatch.c | 12 ++++++------ 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index b036959f5a5..b3f695768dc 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2015-07-14 Richard Biener + + * genmatch.c (dt_node::gen_kids_1): Fix case label indenting. + (decision_tree::gen_gimple): Likewise. + 2015-07-14 Tom de Vries * gcc.c (greater_than_spec_func): Declare forward. diff --git a/gcc/genmatch.c b/gcc/genmatch.c index 12f04b05a81..fa140dfe158 100644 --- a/gcc/genmatch.c +++ b/gcc/genmatch.c @@ -2383,8 +2383,8 @@ dt_node::gen_kids_1 (FILE *f, int indent, bool gimple, fprintf_indent (f, indent, " }\n"); } fprintf_indent (f, indent, "default:;\n"); - indent -= 4; fprintf_indent (f, indent, "}\n"); + indent -= 4; } if (fns_len) @@ -2403,8 +2403,8 @@ dt_node::gen_kids_1 (FILE *f, int indent, bool gimple, " switch (DECL_FUNCTION_CODE (fndecl))\n"); fprintf_indent (f, indent, " {\n"); - indent += 8; + indent += 6; for (unsigned i = 0; i < fns_len; ++i) { expr *e = as_a (fns[i]->op); @@ -2416,8 +2416,8 @@ dt_node::gen_kids_1 (FILE *f, int indent, bool gimple, } fprintf_indent (f, indent, "default:;\n"); - indent -= 8; - fprintf_indent (f, indent, " }\n"); + fprintf_indent (f, indent, "}\n"); + indent -= 6; fprintf_indent (f, indent, " }\n"); } @@ -2481,7 +2481,7 @@ dt_node::gen_kids_1 (FILE *f, int indent, bool gimple, { indent -= 4; fprintf_indent (f, indent, " default:;\n"); - fprintf_indent (f, indent, " }\n"); + fprintf_indent (f, indent, " }\n"); } for (unsigned i = 0; i < preds.length (); ++i) @@ -2915,7 +2915,7 @@ decision_tree::gen_gimple (FILE *f) fprintf (f, " }\n"); } fprintf (f, " default:;\n" - " }\n"); + " }\n"); fprintf (f, " return false;\n"); fprintf (f, "}\n"); -- 2.30.2