Fix dot dump bug

From-SVN: r211746
This commit is contained in:
Xinliang David Li 2014-06-17 20:39:55 +00:00 committed by Xinliang David Li
parent 72f4065c69
commit 90d0d8d3db
3 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2014-06-17 Xinliang David Li <davidxl@google.com>
* 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 <rguenther@suse.de>
* genopinit.c (main): Use vec<>::qsort method.

View File

@ -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)
{

View File

@ -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)"