summaryrefslogtreecommitdiff
path: root/gcc/print-tree.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/print-tree.c')
-rw-r--r--gcc/print-tree.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/print-tree.c b/gcc/print-tree.c
index e86a51cf974..ae409e54610 100644
--- a/gcc/print-tree.c
+++ b/gcc/print-tree.c
@@ -580,10 +580,12 @@ print_node (file, prefix, node, indent)
break;
}
- len = tree_code_length[(int) TREE_CODE (node)];
+ len = TREE_CODE_LENGTH (TREE_CODE (node));
+
/* Some nodes contain rtx's, not trees,
after a certain point. Print the rtx's as rtx's. */
first_rtl = first_rtl_op (TREE_CODE (node));
+
for (i = 0; i < len; i++)
{
if (i >= first_rtl)