aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-inline.c
diff options
context:
space:
mode:
authorRichard Guenther <rguenther@suse.de>2007-08-28 09:03:59 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2007-08-28 09:03:59 +0000
commitc536a6a77a19a895e51e5e5167d266bd8ce61001 (patch)
tree011fca32e4efb23ba0a1e1758ff407cd0dc46ae8 /gcc/tree-inline.c
parent44d5230cc3b623e04e46b2674fbf971743e55057 (diff)
downloadgcc-c536a6a77a19a895e51e5e5167d266bd8ce61001.zip
gcc-c536a6a77a19a895e51e5e5167d266bd8ce61001.tar.gz
gcc-c536a6a77a19a895e51e5e5167d266bd8ce61001.tar.bz2
tree.h (DECL_DISREGARD_INLINE_LIMITS): New.
2007-08-28 Richard Guenther <rguenther@suse.de> * tree.h (DECL_DISREGARD_INLINE_LIMITS): New. (struct tree_function_decl): Make function_code a bitfield. Add disregard_inline_limits flag. * cgraphunit.c (cgraph_process_new_functions): Check DECL_DISREGARD_INLINE_LIMITS instead of disregard_inline_limits_p. (cgraph_preserve_function_body_p): Likewise. * ipa-inline.c (compute_inline_parameters): Likewise. * c-decl.c (finish_function): Set DECL_DISREGARD_INLINE_LIMITS for GNU C extern inline functions. (merge_decls): Merge DECL_DISREGARD_INLINE_LIMITS. * tree-inline.c (disregard_inline_limits_p): Remove. * tree-inline.h (disregard_inline_limits_p): Likewise. * c-common.c (handle_always_inline_attribute): Set DECL_DISREGARD_INLINE_LIMITS. * langhooks.c (add_builtin_function): Verify the function code fits in the bitfield. cp/ * decl.c (duplicate_decls): Merge DECL_DISREGARD_INLINE_LIMITS. From-SVN: r127851
Diffstat (limited to 'gcc/tree-inline.c')
-rw-r--r--gcc/tree-inline.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/gcc/tree-inline.c b/gcc/tree-inline.c
index 2b7ab9e..b2b9590 100644
--- a/gcc/tree-inline.c
+++ b/gcc/tree-inline.c
@@ -1936,20 +1936,6 @@ inlinable_function_p (tree fn)
return inlinable;
}
-/* Return true if we shall disregard inlining limits for the function
- FN during inlining. */
-
-bool
-disregard_inline_limits_p (tree fn)
-{
- /* GNU extern inline functions are supposed to be cheap. */
- if (DECL_DECLARED_INLINE_P (fn)
- && DECL_EXTERNAL (fn))
- return true;
-
- return lookup_attribute ("always_inline", DECL_ATTRIBUTES (fn)) != NULL_TREE;
-}
-
/* Estimate the cost of a memory move. Use machine dependent
word size and take possible memcpy call into account. */