aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-inline.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/tree-inline.c')
-rw-r--r--gcc/tree-inline.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/gcc/tree-inline.c b/gcc/tree-inline.c
index 80a1883..1619838 100644
--- a/gcc/tree-inline.c
+++ b/gcc/tree-inline.c
@@ -1914,6 +1914,15 @@ 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)
+{
+ 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. */