summaryrefslogtreecommitdiff
path: root/gcc/tree-pretty-print.c
diff options
context:
space:
mode:
authorjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>2007-08-31 22:33:44 +0000
committerjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>2007-08-31 22:33:44 +0000
commitfd89037755fa17364e7d253e59b40eede6478caf (patch)
tree0e572f6e38f970c9f27b0d0972b72fed878bd5d7 /gcc/tree-pretty-print.c
parentd93d522b2d994045dd575561e289fd3b980e2e18 (diff)
downloadgcc-fd89037755fa17364e7d253e59b40eede6478caf.tar.gz
* tree-pretty-print.c: Include output.h.
(dump_decl_name, dump_generic_node): Use %wd with pp_printf, not HOST_WIDE_INT_PRINT_DEC. * Makefile.in (tree-pretty-print.o): Add dependency on output.h. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@128004 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-pretty-print.c')
-rw-r--r--gcc/tree-pretty-print.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/tree-pretty-print.c b/gcc/tree-pretty-print.c
index 738fb0938c2..acc16d54da8 100644
--- a/gcc/tree-pretty-print.c
+++ b/gcc/tree-pretty-print.c
@@ -24,6 +24,7 @@ along with GCC; see the file COPYING3. If not see
#include "coretypes.h"
#include "tm.h"
#include "tree.h"
+#include "output.h"
#include "diagnostic.h"
#include "real.h"
#include "hashtab.h"
@@ -178,7 +179,7 @@ dump_decl_name (pretty_printer *buffer, tree node, int flags)
{
if (TREE_CODE (t) == LABEL_DECL
&& LABEL_DECL_UID (t) != -1)
- pp_printf (buffer, "L." HOST_WIDE_INT_PRINT_DEC,
+ pp_printf (buffer, "L.%wd",
LABEL_DECL_UID (t));
else
{
@@ -860,7 +861,7 @@ dump_generic_node (pretty_printer *buffer, tree node, int spc, int flags,
if (DECL_NAME (node))
dump_decl_name (buffer, node, flags);
else if (LABEL_DECL_UID (node) != -1)
- pp_printf (buffer, "<L" HOST_WIDE_INT_PRINT_DEC ">",
+ pp_printf (buffer, "<L%wd>",
LABEL_DECL_UID (node));
else
pp_printf (buffer, "<D.%u>", DECL_UID (node));