aboutsummaryrefslogtreecommitdiff
path: root/gcc/langhooks.c
diff options
context:
space:
mode:
authorRichard Guenther <rguenther@suse.de>2007-08-20 11:37:08 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2007-08-20 11:37:08 +0000
commit1d51f406677ceea381da32d39f43f4084fd8d69f (patch)
tree80efab936a1dcc2f70ed51c276471013fcb4ee5c /gcc/langhooks.c
parent50886bf1f9143bd97180043ceaddde5061d43e78 (diff)
downloadgcc-1d51f406677ceea381da32d39f43f4084fd8d69f.zip
gcc-1d51f406677ceea381da32d39f43f4084fd8d69f.tar.gz
gcc-1d51f406677ceea381da32d39f43f4084fd8d69f.tar.bz2
c-objc-common.c (c_disregard_inline_limits): Remove.
2007-08-20 Richard Guenther <rguenther@suse.de> * c-objc-common.c (c_disregard_inline_limits): Remove. * c-objc-common.h (c_disregard_inline_limits): Likewise. * cgraphunit.c (cgraph_process_new_functions): Call disregard_inline_limits_p. (cgraph_preserve_function_body_p): Likewise. * ipa-inline.c (compute_inline_parameters): Likewise. * langhooks-def.h (lhd_tree_inlining_disregard_inline_limits): Remove. (LANG_HOOKS_TREE_INLINING_DISREGARD_INLINE_LIMITS): Remove. (LANG_HOOKS_TREE_INLINING_INITIALIZER): Remove initializer for disregard_inline_limits langhook. * langhooks.c (lhd_tree_inlining_disregard_inline_limits): Remove. * langhooks.h (lang_hooks_for_tree_inlining): Remove disregard_inline_limits langhook. * tree-inline.c (disregard_inline_limits_p): New function. * tree-inline.h (disregard_inline_limits_p): Declare. From-SVN: r127644
Diffstat (limited to 'gcc/langhooks.c')
-rw-r--r--gcc/langhooks.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/gcc/langhooks.c b/gcc/langhooks.c
index 2a731b7..56680c9 100644
--- a/gcc/langhooks.c
+++ b/gcc/langhooks.c
@@ -290,19 +290,6 @@ lhd_tree_inlining_cannot_inline_tree_fn (tree *fnp)
return 0;
}
-/* lang_hooks.tree_inlining.disregard_inline_limits is called to
- determine whether a function should be considered for inlining even
- if it would exceed inlining limits. */
-
-int
-lhd_tree_inlining_disregard_inline_limits (const_tree fn)
-{
- if (lookup_attribute ("always_inline", DECL_ATTRIBUTES (fn)) != NULL)
- return 1;
-
- return 0;
-}
-
/* lang_hooks.tree_dump.dump_tree: Dump language-specific parts of tree
nodes. Returns nonzero if it does not want the usual dumping of the
second argument. */