Commit 973bb832 by Joseph Myers Committed by Joseph Myers

tree-pretty-print.c: Include output.h.

	* 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.

From-SVN: r128004
parent 51d89a5c
2007-08-31 Joseph Myers <joseph@codesourcery.com>
* 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.
2007-08-31 Zdenek Dvorak <ook@ucw.cz> 2007-08-31 Zdenek Dvorak <ook@ucw.cz>
PR rtl-optimization/33224 PR rtl-optimization/33224
......
...@@ -2291,7 +2291,7 @@ tree-nomudflap.o : $(CONFIG_H) $(SYSTEM_H) $(TREE_H) $(TREE_INLINE_H) \ ...@@ -2291,7 +2291,7 @@ tree-nomudflap.o : $(CONFIG_H) $(SYSTEM_H) $(TREE_H) $(TREE_INLINE_H) \
tree-pretty-print.o : tree-pretty-print.c $(CONFIG_H) $(SYSTEM_H) \ tree-pretty-print.o : tree-pretty-print.c $(CONFIG_H) $(SYSTEM_H) \
$(TREE_H) $(DIAGNOSTIC_H) $(REAL_H) $(HASHTAB_H) $(TREE_FLOW_H) \ $(TREE_H) $(DIAGNOSTIC_H) $(REAL_H) $(HASHTAB_H) $(TREE_FLOW_H) \
$(TM_H) coretypes.h tree-iterator.h tree-chrec.h langhooks.h tree-pass.h \ $(TM_H) coretypes.h tree-iterator.h tree-chrec.h langhooks.h tree-pass.h \
value-prof.h fixed-value.h value-prof.h fixed-value.h output.h
fold-const.o : fold-const.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \ fold-const.o : fold-const.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \
$(TREE_H) $(FLAGS_H) $(REAL_H) toplev.h $(HASHTAB_H) $(EXPR_H) $(RTL_H) \ $(TREE_H) $(FLAGS_H) $(REAL_H) toplev.h $(HASHTAB_H) $(EXPR_H) $(RTL_H) \
$(GGC_H) $(TM_P_H) langhooks.h $(MD5_H) intl.h fixed-value.h $(GGC_H) $(TM_P_H) langhooks.h $(MD5_H) intl.h fixed-value.h
......
...@@ -24,6 +24,7 @@ along with GCC; see the file COPYING3. If not see ...@@ -24,6 +24,7 @@ along with GCC; see the file COPYING3. If not see
#include "coretypes.h" #include "coretypes.h"
#include "tm.h" #include "tm.h"
#include "tree.h" #include "tree.h"
#include "output.h"
#include "diagnostic.h" #include "diagnostic.h"
#include "real.h" #include "real.h"
#include "hashtab.h" #include "hashtab.h"
...@@ -178,7 +179,7 @@ dump_decl_name (pretty_printer *buffer, tree node, int flags) ...@@ -178,7 +179,7 @@ dump_decl_name (pretty_printer *buffer, tree node, int flags)
{ {
if (TREE_CODE (t) == LABEL_DECL if (TREE_CODE (t) == LABEL_DECL
&& LABEL_DECL_UID (t) != -1) && LABEL_DECL_UID (t) != -1)
pp_printf (buffer, "L." HOST_WIDE_INT_PRINT_DEC, pp_printf (buffer, "L.%wd",
LABEL_DECL_UID (t)); LABEL_DECL_UID (t));
else else
{ {
...@@ -860,7 +861,7 @@ dump_generic_node (pretty_printer *buffer, tree node, int spc, int flags, ...@@ -860,7 +861,7 @@ dump_generic_node (pretty_printer *buffer, tree node, int spc, int flags,
if (DECL_NAME (node)) if (DECL_NAME (node))
dump_decl_name (buffer, node, flags); dump_decl_name (buffer, node, flags);
else if (LABEL_DECL_UID (node) != -1) 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)); LABEL_DECL_UID (node));
else else
pp_printf (buffer, "<D.%u>", DECL_UID (node)); pp_printf (buffer, "<D.%u>", DECL_UID (node));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment