diff options
author | Andrew Pinski <andrew_pinski@playstation.sony.com> | 2006-11-08 11:50:49 -0800 |
---|---|---|
committer | Andrew Pinski <pinskia@gcc.gnu.org> | 2006-11-08 11:50:49 -0800 |
commit | 54b12dbeb25fe3439330f86a0a7184c098e4cfa7 (patch) | |
tree | f350af1ae59bfbd3362f3ab4bde43d84a83659f6 /gcc/tree-pretty-print.c | |
parent | e9903c672a4ba33b7c969a5690a77182b122c06a (diff) | |
download | gcc-54b12dbeb25fe3439330f86a0a7184c098e4cfa7.zip gcc-54b12dbeb25fe3439330f86a0a7184c098e4cfa7.tar.gz gcc-54b12dbeb25fe3439330f86a0a7184c098e4cfa7.tar.bz2 |
tree-pretty-print.c (dump_generic_node): Use HOST_WIDE_INT_PRINT_DOUBLE_HEX instead of format buffer.
2006-11-08 Andrew Pinski <Andrew_Pinski@playstation.sony.com>
* tree-pretty-print.c (dump_generic_node) <INTEGER_CST>: Use
HOST_WIDE_INT_PRINT_DOUBLE_HEX instead of format buffer.
From-SVN: r118597
Diffstat (limited to 'gcc/tree-pretty-print.c')
-rw-r--r-- | gcc/tree-pretty-print.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/gcc/tree-pretty-print.c b/gcc/tree-pretty-print.c index ddc84f3..bca6c00 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); |