diff options
author | Kelley Cook <kelleycook@wideopenwest.com> | 2003-09-26 00:14:28 +0000 |
---|---|---|
committer | R. Kelley Cook <kcook@gcc.gnu.org> | 2003-09-26 00:14:28 +0000 |
commit | 7d82fe7cf81a19bdd43e33a3076fceb0a59af041 (patch) | |
tree | 9c0bb7257cbd0e4289f45ea4902f676279aa5517 /gcc/cgraph.c | |
parent | c73f02bef2bbfbad114bb0b2284cae9eb23b81e5 (diff) | |
download | gcc-7d82fe7cf81a19bdd43e33a3076fceb0a59af041.zip gcc-7d82fe7cf81a19bdd43e33a3076fceb0a59af041.tar.gz gcc-7d82fe7cf81a19bdd43e33a3076fceb0a59af041.tar.bz2 |
cgraph.c (dump_cgraph): Don't output newline before dump.
2003-09-23 Kelley Cook <kelleycook@wideopenwest.com>
* cgraph.c (dump_cgraph): Don't output newline before dump. Add in
"local" to the callgraph dump. Output "after inlining" earlier.
* cgraphunit.c: Fix dumpfile whitespace and commonize headers of the
callgraph dumps. Correct misspellings.
(cgraph_decide_inlining): Output number of insns before inlining.
Output the calling function into which a function is inlined.
(cgraph_decide_small_functions): Format dump file like always_inline.
From-SVN: r71804
Diffstat (limited to 'gcc/cgraph.c')
-rw-r--r-- | gcc/cgraph.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/gcc/cgraph.c b/gcc/cgraph.c index 8471a72..108cdfc 100644 --- a/gcc/cgraph.c +++ b/gcc/cgraph.c @@ -350,13 +350,15 @@ dump_cgraph (FILE *f) { struct cgraph_node *node; - fprintf (f, "\nCallgraph:\n\n"); + fprintf (f, "callgraph:\n\n"); for (node = cgraph_nodes; node; node = node->next) { struct cgraph_edge *edge; - fprintf (f, "%s", cgraph_node_name (node)); + fprintf (f, "%s:", cgraph_node_name (node)); if (node->local.self_insns) fprintf (f, " %i insns", node->local.self_insns); + if (node->global.insns && node->global.insns != node->local.self_insns) + fprintf (f, " (%i after inlining)", node->global.insns); if (node->origin) fprintf (f, " nested in: %s", cgraph_node_name (node->origin)); if (node->needed) @@ -366,12 +368,12 @@ dump_cgraph (FILE *f) if (DECL_SAVED_TREE (node->decl)) fprintf (f, " tree"); + if (node->local.local) + fprintf (f, " local"); if (node->local.disregard_inline_limits) fprintf (f, " always_inline"); else if (node->local.inlinable) fprintf (f, " inlinable"); - if (node->global.insns && node->global.insns != node->local.self_insns) - fprintf (f, " %i insns after inlining", node->global.insns); if (node->global.cloned_times > 1) fprintf (f, " cloned %ix", node->global.cloned_times); |