diff options
Diffstat (limited to 'gcc/cp/ptree.c')
| -rw-r--r-- | gcc/cp/ptree.c | 23 |
1 files changed, 8 insertions, 15 deletions
diff --git a/gcc/cp/ptree.c b/gcc/cp/ptree.c index 900e8b0d19a..356ed4530d7 100644 --- a/gcc/cp/ptree.c +++ b/gcc/cp/ptree.c @@ -46,22 +46,16 @@ cxx_print_decl (FILE *file, tree node, int indent) indent_to (file, indent + 3); if (TREE_CODE (node) == FUNCTION_DECL && DECL_PENDING_INLINE_INFO (node)) - { - fprintf (file, " pending-inline-info "); - fprintf (file, HOST_PTR_PRINTF, (void *) DECL_PENDING_INLINE_INFO (node)); - } + fprintf (file, " pending-inline-info " HOST_PTR_PRINTF, + (void *) DECL_PENDING_INLINE_INFO (node)); if (TREE_CODE (node) == TYPE_DECL && DECL_SORTED_FIELDS (node)) - { - fprintf (file, " sorted-fields "); - fprintf (file, HOST_PTR_PRINTF, (void *) DECL_SORTED_FIELDS (node)); - } + fprintf (file, " sorted-fields " HOST_PTR_PRINTF, + (void *) DECL_SORTED_FIELDS (node)); if ((TREE_CODE (node) == FUNCTION_DECL || TREE_CODE (node) == VAR_DECL) && DECL_TEMPLATE_INFO (node)) - { - fprintf (file, " template-info "); - fprintf (file, HOST_PTR_PRINTF, (void *) DECL_TEMPLATE_INFO (node)); - } + fprintf (file, " template-info " HOST_PTR_PRINTF, + (void *) DECL_TEMPLATE_INFO (node)); } void @@ -155,9 +149,8 @@ cxx_print_type (FILE *file, tree node, int indent) static void cxx_print_binding (FILE *stream, cxx_binding *binding, const char *prefix) { - fprintf (stream, "%s <", prefix); - fprintf (stream, HOST_PTR_PRINTF, (char *) binding); - fprintf (stream, ">"); + fprintf (stream, "%s <" HOST_PTR_PRINTF ">", + prefix, (void *) binding); } void |

