summaryrefslogtreecommitdiff
path: root/gcc/cgraphunit.c
diff options
context:
space:
mode:
authorJosh Conner <jconner@apple.com>2005-07-28 17:14:57 +0000
committerJosh Conner <jconner@gcc.gnu.org>2005-07-28 17:14:57 +0000
commit9de21a2340b1c198d7ce431753ac92a1f71e0a48 (patch)
treead9d93c4161ef8e99642c7ab70a87f2ea9c7c3ef /gcc/cgraphunit.c
parent206048bd415aa4a985b6a2929b91bb86962f468f (diff)
downloadgcc-9de21a2340b1c198d7ce431753ac92a1f71e0a48.tar.gz
ipa-inline.c (cgraph_edge_badness): Update comments.
* ipa-inline.c (cgraph_edge_badness): Update comments. Invert shift direction of badness if negative. (cgraph_default_inline_p): Add reason to parameters, and assign it a value. (cgraph_decide_inlining_of_small_functions): New parameter in call to cgraph_default_inline_p. (cgraph_decide_inlining_incrementally): Likewise. * cgraphunit.c (decide_is_function_needed): Likewise. * cgraph.h (cgraph_default_inline_p): Likewise. From-SVN: r102497
Diffstat (limited to 'gcc/cgraphunit.c')
-rw-r--r--gcc/cgraphunit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cgraphunit.c b/gcc/cgraphunit.c
index 7b126cc6f89..f8f864c11f8 100644
--- a/gcc/cgraphunit.c
+++ b/gcc/cgraphunit.c
@@ -248,7 +248,7 @@ decide_is_function_needed (struct cgraph_node *node, tree decl)
/* When declared inline, defer even the uninlinable functions.
This allows them to be eliminated when unused. */
&& !DECL_DECLARED_INLINE_P (decl)
- && (!node->local.inlinable || !cgraph_default_inline_p (node))))
+ && (!node->local.inlinable || !cgraph_default_inline_p (node, NULL))))
return true;
return false;