From e4a7b8dc026207d55b713ade4709e30858293212 Mon Sep 17 00:00:00 2001 From: pinskia Date: Wed, 8 Nov 2006 19:50:49 +0000 Subject: 2006-11-08 Andrew Pinski * tree-pretty-print.c (dump_generic_node) : Use HOST_WIDE_INT_PRINT_DOUBLE_HEX instead of format buffer. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@118597 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/tree-pretty-print.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'gcc/tree-pretty-print.c') diff --git a/gcc/tree-pretty-print.c b/gcc/tree-pretty-print.c index ddc84f374de..bca6c00ffaa 100644 --- a/gcc/tree-pretty-print.c +++ b/gcc/tree-pretty-print.c @@ -732,12 +732,7 @@ dump_generic_node (pretty_printer *buffer, tree node, int spc, int flags, /* Would "%x%0*x" or "%x%*0x" get zero-padding on all systems? */ { - static char format[10]; /* "%x%09999x\0" */ - if (!format[0]) - sprintf (format, "0x%%" HOST_WIDE_INT_PRINT "x" - "%%0%d" HOST_WIDE_INT_PRINT "x", - HOST_BITS_PER_WIDE_INT / 4); - sprintf (pp_buffer (buffer)->digit_buffer, format, + sprintf (pp_buffer (buffer)->digit_buffer, HOST_WIDE_INT_PRINT_DOUBLE_HEX, TREE_INT_CST_HIGH (val), TREE_INT_CST_LOW (val)); pp_string (buffer, pp_buffer (buffer)->digit_buffer); -- cgit v1.2.1