diff options
author | Kaveh R. Ghazi <ghazi@caip.rutgers.edu> | 2003-07-08 00:35:52 +0000 |
---|---|---|
committer | Kaveh Ghazi <ghazi@gcc.gnu.org> | 2003-07-08 00:35:52 +0000 |
commit | 75b6f3fd3a00de216b2a38fb3ad2da80e08979f1 (patch) | |
tree | ff36bca69b7fbedb7d6cc5611fbd918944314e77 /gcc/cp/ptree.c | |
parent | afeeac3f8845c16d6165f59b1823f89dbca569bb (diff) | |
download | gcc-75b6f3fd3a00de216b2a38fb3ad2da80e08979f1.zip gcc-75b6f3fd3a00de216b2a38fb3ad2da80e08979f1.tar.gz gcc-75b6f3fd3a00de216b2a38fb3ad2da80e08979f1.tar.bz2 |
bitmap.c (debug_bitmap_file): Merge uses of HOST_PTR_PRINTF with adjacent stdio calls.
gcc:
* bitmap.c (debug_bitmap_file): Merge uses of HOST_PTR_PRINTF with
adjacent stdio calls.
* c-decl.c (c_print_identifier): Likewise.
* mips-tfile.c (write_varray, write_object, allocate_cluster): Likewise.
* print-rtl.c (print_rtx): Likewise.
* print-tree.c (print_node_brief, print_node): Likewise.
* system.h (HOST_PTR_PRINTF): Ensure we have a literal string.
* configure.in (AC_COMPILE_CHECK_SIZEOF): Check for `void *'.
* config.in, configure: Regenerated.
cp:
* decl.c (print_binding_level, print_other_binding_stack,
print_binding_stack): Merge uses of HOST_PTR_PRINTF with adjacent
stdio calls.
* ptree.c (cxx_print_decl, cxx_print_binding): Likewise.
From-SVN: r69061
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 900e8b0..356ed45 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 |