c-decl.c (diagnose_mismatched_decls): Fix warning calls.
* c-decl.c (diagnose_mismatched_decls): Fix warning calls. * cgraphunit.c (cgraph_optimize_function): Always do optimize_inline_calls when there is always_inline callee. (cgraph_decide_inlining): Fix formating. * tree-inline.c (inlinable_function_p): Do sorry for alwaysinline functions. (expand_call_inline): Likewise. * toplev.h (sorry): Fix prototype. From-SVN: r75782
This commit is contained in:
parent
2d3270129f
commit
0bb03c1105
2 changed files with 6 additions and 2 deletions
|
@ -1,5 +1,7 @@
|
|||
2004-01-13 Jan Hubicka <jh@suse.cz>
|
||||
|
||||
* c-decl.c (diagnose_mismatched_decls): Fix warning calls.
|
||||
|
||||
* cgraphunit.c (cgraph_optimize_function): Always do
|
||||
optimize_inline_calls when there is always_inline callee.
|
||||
(cgraph_decide_inlining): Fix formating.
|
||||
|
|
|
@ -1175,12 +1175,14 @@ diagnose_mismatched_decls (tree newdecl, tree olddecl,
|
|||
{
|
||||
if (TREE_USED (olddecl))
|
||||
{
|
||||
warning ("%J'%D' declared inline after being called");
|
||||
warning ("%J'%D' declared inline after being called",
|
||||
olddecl, olddecl);
|
||||
warned = true;
|
||||
}
|
||||
else if (DECL_INITIAL (olddecl))
|
||||
{
|
||||
warning ("%J'%D' declared inline after its definition");
|
||||
warning ("%J'%D' declared inline after its definition",
|
||||
olddecl, olddecl);
|
||||
warned = true;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue