From: Richard Biener Date: Tue, 14 Jul 2015 08:40:51 +0000 (+0000) Subject: genmatch.c (dt_node::gen_kids_1): Fix case label indenting. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1ec1fa94b7f20c6f8ebaba6f37d8aa1357420d72;p=gcc.git 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 --- 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");