diff options
Diffstat (limited to 'gcc/cp/ptree.c')
-rw-r--r-- | gcc/cp/ptree.c | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/gcc/cp/ptree.c b/gcc/cp/ptree.c index 3e2f914..aa3066c 100644 --- a/gcc/cp/ptree.c +++ b/gcc/cp/ptree.c @@ -70,9 +70,12 @@ print_lang_type (file, node, indent) || TREE_CODE (node) == TEMPLATE_TEMPLATE_PARM) { indent_to (file, indent + 3); - fprintf (file, "index %d level %d orig_level %d", - TEMPLATE_TYPE_IDX (node), TEMPLATE_TYPE_LEVEL (node), - TEMPLATE_TYPE_ORIG_LEVEL (node)); + fputs ("index ", file); + fprintf (file, HOST_WIDE_INT_PRINT_DEC, TEMPLATE_TYPE_IDX (node)); + fputs (" level ", file); + fprintf (file, HOST_WIDE_INT_PRINT_DEC, TEMPLATE_TYPE_LEVEL (node)); + fputs (" orig_level ", file); + fprintf (file, HOST_WIDE_INT_PRINT_DEC, TEMPLATE_TYPE_ORIG_LEVEL (node)); return; } @@ -175,9 +178,12 @@ lang_print_xnode (file, node, indent) break; case TEMPLATE_PARM_INDEX: indent_to (file, indent + 3); - fprintf (file, "index %d level %d orig_level %d", - TEMPLATE_PARM_IDX (node), TEMPLATE_PARM_LEVEL (node), - TEMPLATE_PARM_ORIG_LEVEL (node)); + fputs ("index ", file); + fprintf (file, HOST_WIDE_INT_PRINT_DEC, TEMPLATE_PARM_IDX (node)); + fputs (" level ", file); + fprintf (file, HOST_WIDE_INT_PRINT_DEC, TEMPLATE_PARM_LEVEL (node)); + fputs (" orig_level ", file); + fprintf (file, HOST_WIDE_INT_PRINT_DEC, TEMPLATE_PARM_ORIG_LEVEL (node)); break; default: break; |