diff options
author | Jan Hubicka <jh@suse.cz> | 2004-01-02 19:06:16 +0100 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2004-01-02 18:06:16 +0000 |
commit | 8b6bd5d71720bb7a52db3937541a43e84cef30a9 (patch) | |
tree | 0608c40aa387e85b1471f45d9d4c14ebd1077b51 /gcc/cgraphunit.c | |
parent | fa0e53a48a09a5b0095777763001266518b7c3a4 (diff) | |
download | gcc-8b6bd5d71720bb7a52db3937541a43e84cef30a9.tar.gz |
cgraphunit.c (cgraph_optimize_function): Call optimize_inline_calls when there is nothing to inline but warnings are...
* cgraphunit.c (cgraph_optimize_function): Call optimize_inline_calls
when there is nothing to inline but warnings are requested.
(cgraph_decide_inlining): Fix memory leak.
From-SVN: r75333
Diffstat (limited to 'gcc/cgraphunit.c')
-rw-r--r-- | gcc/cgraphunit.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/gcc/cgraphunit.c b/gcc/cgraphunit.c index dfe4c7173dc..932c418a073 100644 --- a/gcc/cgraphunit.c +++ b/gcc/cgraphunit.c @@ -476,7 +476,7 @@ cgraph_optimize_function (struct cgraph_node *node) struct cgraph_edge *e; for (e = node->callees; e; e = e->next_callee) - if (e->inline_call) + if (e->inline_call || warn_inline) break; if (e) optimize_inline_calls (decl); @@ -1213,17 +1213,17 @@ cgraph_decide_inlining (void) } } } - - if (cgraph_dump_file) - fprintf (cgraph_dump_file, - "\nInlined %i calls, eliminated %i functions, " - "%i insns turned to %i insns.\n\n", - ncalls_inlined, nfunctions_inlined, initial_insns, - overall_insns); - free (order); - free (inlined); - free (inlined_callees); } + + if (cgraph_dump_file) + fprintf (cgraph_dump_file, + "\nInlined %i calls, eliminated %i functions, " + "%i insns turned to %i insns.\n\n", + ncalls_inlined, nfunctions_inlined, initial_insns, + overall_insns); + free (order); + free (inlined); + free (inlined_callees); } /* Decide on the inlining. We do so in the topological order to avoid |