diff options
author | Martin Liska <mliska@suse.cz> | 2018-10-24 10:47:59 +0200 |
---|---|---|
committer | Martin Liska <marxin@gcc.gnu.org> | 2018-10-24 08:47:59 +0000 |
commit | 19b5595858162b8a77b84db93b21b39a48dc2d0e (patch) | |
tree | 1ad536f2b3227e638ea02d3fafa0f66853a92a39 /gcc/cgraph.c | |
parent | bf32992748c9849c38c089477d04b546e43ccdd1 (diff) |
Remove reduntant dumps and make tp_first_run dump more compact.
2018-10-24 Martin Liska <mliska@suse.cz>
* cgraph.c (cgraph_node::dump):
Remove reduntant dumps and make tp_first_run dump more compact.
2018-10-24 Martin Liska <mliska@suse.cz>
* libgcov-profiler.c: Start from 1 in order to distinguish
functions which were seen and these that were not.
From-SVN: r265454
Diffstat (limited to 'gcc/cgraph.c')
-rw-r--r-- | gcc/cgraph.c | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/gcc/cgraph.c b/gcc/cgraph.c index 48bab9f2749..b432f7e6500 100644 --- a/gcc/cgraph.c +++ b/gcc/cgraph.c @@ -2016,7 +2016,6 @@ cgraph_node::dump (FILE *f) if (profile_id) fprintf (f, " Profile id: %i\n", profile_id); - fprintf (f, " First run: %i\n", tp_first_run); cgraph_function_version_info *vi = function_version (); if (vi != NULL) { @@ -2040,11 +2039,13 @@ cgraph_node::dump (FILE *f) fprintf (f, " Function flags:"); if (count.initialized_p ()) { - fprintf (f, " count: "); + fprintf (f, " count:"); count.dump (f); } + if (tp_first_run > 0) + fprintf (f, " first_run:%i", tp_first_run); if (origin) - fprintf (f, " nested in: %s", origin->asm_name ()); + fprintf (f, " nested in:%s", origin->asm_name ()); if (gimple_has_body_p (decl)) fprintf (f, " body"); if (process) @@ -2081,10 +2082,6 @@ cgraph_node::dump (FILE *f) fprintf (f, " unlikely_executed"); if (frequency == NODE_FREQUENCY_EXECUTED_ONCE) fprintf (f, " executed_once"); - if (only_called_at_startup) - fprintf (f, " only_called_at_startup"); - if (only_called_at_exit) - fprintf (f, " only_called_at_exit"); if (opt_for_fn (decl, optimize_size)) fprintf (f, " optimize_size"); if (parallelized_function) @@ -2096,7 +2093,7 @@ cgraph_node::dump (FILE *f) { fprintf (f, " Thunk"); if (thunk.alias) - fprintf (f, " of %s (asm: %s)", + fprintf (f, " of %s (asm:%s)", lang_hooks.decl_printable_name (thunk.alias, 2), IDENTIFIER_POINTER (DECL_ASSEMBLER_NAME (thunk.alias))); fprintf (f, " fixed offset %i virtual value %i indirect_offset %i " @@ -2112,7 +2109,7 @@ cgraph_node::dump (FILE *f) fprintf (f, " Alias of %s", lang_hooks.decl_printable_name (thunk.alias, 2)); if (DECL_ASSEMBLER_NAME_SET_P (thunk.alias)) - fprintf (f, " (asm: %s)", + fprintf (f, " (asm:%s)", IDENTIFIER_POINTER (DECL_ASSEMBLER_NAME (thunk.alias))); fprintf (f, "\n"); } |