2004-01-02 Jan Hubicka <jh@suse.cz>
+ * 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.
+
+2004-01-02 Jan Hubicka <jh@suse.cz>
+
* expr.c (store_constructor): Fix pasto in previous patch.
2004-01-02 Kazu Hirata <kazu@cs.umass.edu>
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);
}
}
}
-
- 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