ipa-inline.c:ipa_inline: Fix leak of "order" when optimizations are disabled.
2013-10-10 David Malcolm <dmalcolm@redhat.com> * ipa-inline.c (ipa_inline): Fix leak of "order" when optimizations are disabled. From-SVN: r203389
This commit is contained in:
parent
782f0db2f5
commit
b591a8b78c
2 changed files with 8 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
|||
2013-10-10 David Malcolm <dmalcolm@redhat.com>
|
||||
|
||||
* ipa-inline.c (ipa_inline): Fix leak of "order" when
|
||||
optimizations are disabled.
|
||||
|
||||
2013-10-10 David Malcolm <dmalcolm@redhat.com>
|
||||
|
||||
* coverage.c (coverage_finish): Fix leak of da_file_name.
|
||||
|
|
|
@ -1962,8 +1962,7 @@ ipa_inline (void)
|
|||
{
|
||||
struct cgraph_node *node;
|
||||
int nnodes;
|
||||
struct cgraph_node **order =
|
||||
XCNEWVEC (struct cgraph_node *, cgraph_n_nodes);
|
||||
struct cgraph_node **order;
|
||||
int i;
|
||||
int cold;
|
||||
bool remove_functions = false;
|
||||
|
@ -1971,6 +1970,8 @@ ipa_inline (void)
|
|||
if (!optimize)
|
||||
return 0;
|
||||
|
||||
order = XCNEWVEC (struct cgraph_node *, cgraph_n_nodes);
|
||||
|
||||
if (in_lto_p && optimize)
|
||||
ipa_update_after_lto_read ();
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue