* [google] add module id in function header dump for lipo (issue4579046)
@ 2011-06-08 1:25 David Li
0 siblings, 0 replies; only message in thread
From: David Li @ 2011-06-08 1:25 UTC (permalink / raw)
To: reply, gcc-patches
This is trivial change to allow module id to be displayed in LIPO mode
in function header.
2011-06-07 David Li <davidxl@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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2011-06-07 23:46 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-06-08 1:25 [google] add module id in function header dump for lipo (issue4579046) David Li
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).