This is trivial change to allow module id to be displayed in LIPO mode in function header.
2011-06-07 David Li <davi...@google.com> * tree-pretty-print.c (revision 174779) (dump_function_header): dump module id. Index: tree-pretty-print.c =================================================================== --- tree-pretty-print.c (revision 174779) +++ tree-pretty-print.c (working copy) @@ -34,6 +34,7 @@ along with GCC; see the file COPYING3. #include "tree-pass.h" #include "value-prof.h" #include "predict.h" +#include "l-ipo.h" /* Local functions, macros and variables. */ static const char *op_symbol (const_tree); @@ -3034,8 +3035,13 @@ dump_function_header (FILE *dump_file, t else aname = "<unset-asm-name>"; - fprintf (dump_file, "\n;; Function %s (%s, funcdef_no=%d", - dname, aname, fun->funcdef_no); + if (L_IPO_COMP_MODE) + fprintf (dump_file, "\n;; Function %s (%s, funcdef_no=%d:%d", + dname, aname, FUNC_DECL_MODULE_ID (fun), + FUNC_DECL_FUNC_ID (fun)); + else + fprintf (dump_file, "\n;; Function %s (%s, funcdef_no=%d", + dname, aname, fun->funcdef_no); if (!(flags & TDF_NOUID)) fprintf (dump_file, ", decl_uid=%d", DECL_UID (fdecl)); if (node) Index: Makefile.in =================================================================== --- Makefile.in (revision 174779) +++ Makefile.in (working copy) @@ -2787,7 +2787,7 @@ tree-nomudflap.o : $(CONFIG_H) $(SYSTEM_ tree-pretty-print.o : tree-pretty-print.c $(CONFIG_H) $(SYSTEM_H) \ $(TREE_H) $(DIAGNOSTIC_H) $(HASHTAB_H) $(TREE_FLOW_H) \ $(TM_H) coretypes.h tree-iterator.h $(SCEV_H) langhooks.h \ - $(TREE_PASS_H) value-prof.h output.h tree-pretty-print.h + $(TREE_PASS_H) value-prof.h output.h tree-pretty-print.h l-ipo.h tree-diagnostic.o : tree-diagnostic.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \ $(TREE_H) $(DIAGNOSTIC_H) tree-diagnostic.h langhooks.h $(LANGHOOKS_DEF_H) fold-const.o : fold-const.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \ -- This patch is available for review at http://codereview.appspot.com/4579046