Commit 3ce6c715 by Segher Boessenkool Committed by Segher Boessenkool

stmt.c (dump_case_nodes): Don't convert values to HOST_WIDE_INT before printing.

	* stmt.c (dump_case_nodes): Don't convert values to HOST_WIDE_INT
	before printing.

From-SVN: r210978
parent 11237229
2014-05-27 Segher Boessenkool <segher@kernel.crashing.org>
* stmt.c (dump_case_nodes): Don't convert values to HOST_WIDE_INT
before printing.
2014-05-27 Steve Ellcey <sellcey@mips.com> 2014-05-27 Steve Ellcey <sellcey@mips.com>
* config/mips/mips.c: Add include of cgraph.h. * config/mips/mips.c: Add include of cgraph.h.
......
...@@ -774,24 +774,20 @@ static void ...@@ -774,24 +774,20 @@ static void
dump_case_nodes (FILE *f, struct case_node *root, dump_case_nodes (FILE *f, struct case_node *root,
int indent_step, int indent_level) int indent_step, int indent_level)
{ {
HOST_WIDE_INT low, high;
if (root == 0) if (root == 0)
return; return;
indent_level++; indent_level++;
dump_case_nodes (f, root->left, indent_step, indent_level); dump_case_nodes (f, root->left, indent_step, indent_level);
low = tree_to_shwi (root->low);
high = tree_to_shwi (root->high);
fputs (";; ", f); fputs (";; ", f);
if (high == low) fprintf (f, "%*s", indent_step * indent_level, "");
fprintf (f, "%*s" HOST_WIDE_INT_PRINT_DEC, print_dec (root->low, f, TYPE_SIGN (TREE_TYPE (root->low)));
indent_step * indent_level, "", low); if (!tree_int_cst_equal (root->low, root->high))
else {
fprintf (f, "%*s" HOST_WIDE_INT_PRINT_DEC " ... " HOST_WIDE_INT_PRINT_DEC, fprintf (f, " ... ");
indent_step * indent_level, "", low, high); print_dec (root->high, f, TYPE_SIGN (TREE_TYPE (root->high)));
}
fputs ("\n", f); fputs ("\n", f);
dump_case_nodes (f, root->right, indent_step, indent_level); dump_case_nodes (f, root->right, indent_step, indent_level);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment