From 90d0d8d3dbf02ec3efa933645033789231dbece7 Mon Sep 17 00:00:00 2001 From: Xinliang David Li Date: Tue, 17 Jun 2014 20:39:55 +0000 Subject: [PATCH] Fix dot dump bug From-SVN: r211746 --- gcc/ChangeLog | 6 ++++++ gcc/passes.c | 1 - gcc/tree-pretty-print.c | 1 + 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 2820759a280..472fe00c3ad 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2014-06-17 Xinliang David Li + + * tree-pretty-print.c (dump_function_header): Print cgraph uid. + * passes.c (pass_init_dump_file): Do not set initialize + flag to false unconditionally. + 2014-06-17 Richard Biener * genopinit.c (main): Use vec<>::qsort method. diff --git a/gcc/passes.c b/gcc/passes.c index 43662513e9a..4ddb84a4eb1 100644 --- a/gcc/passes.c +++ b/gcc/passes.c @@ -1895,7 +1895,6 @@ verify_curr_properties (function *fn, void *data) bool pass_init_dump_file (opt_pass *pass) { - pass->graph_dump_initialized = false; /* If a dump file name is present, open it if enabled. */ if (pass->static_pass_number != -1) { diff --git a/gcc/tree-pretty-print.c b/gcc/tree-pretty-print.c index c5b4aeeb4cd..3f6152fe8f2 100644 --- a/gcc/tree-pretty-print.c +++ b/gcc/tree-pretty-print.c @@ -3465,6 +3465,7 @@ dump_function_header (FILE *dump_file, tree fdecl, int flags) fprintf (dump_file, ", decl_uid=%d", DECL_UID (fdecl)); if (node) { + fprintf (dump_file, ", cgraph_uid=%d", node->uid); fprintf (dump_file, ", symbol_order=%d)%s\n\n", node->order, node->frequency == NODE_FREQUENCY_HOT ? " (hot)"