Skip to content

Commit

Permalink
2015-07-14 Richard Biener <[email protected]>
Browse files Browse the repository at this point in the history
	* genmatch.c (dt_node::gen_kids_1): Fix case label indenting.
	(decision_tree::gen_gimple): Likewise.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@225765 138bc75d-0d04-0410-961f-82ee72b054a4
  • Loading branch information
rguenth committed Jul 14, 2015
1 parent 1b316d6 commit 6700b27
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
5 changes: 5 additions & 0 deletions gcc/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
2015-07-14 Richard Biener <[email protected]>

* genmatch.c (dt_node::gen_kids_1): Fix case label indenting.
(decision_tree::gen_gimple): Likewise.

2015-07-14 Tom de Vries <[email protected]>

* gcc.c (greater_than_spec_func): Declare forward.
Expand Down
12 changes: 6 additions & 6 deletions gcc/genmatch.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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 <expr *>(fns[i]->op);
Expand All @@ -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");
}

Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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");
Expand Down

0 comments on commit 6700b27

Please sign in to comment.