diff options
Diffstat (limited to 'gcc/tree-inline.c')
-rw-r--r-- | gcc/tree-inline.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/tree-inline.c b/gcc/tree-inline.c index 1619838..a24f70d 100644 --- a/gcc/tree-inline.c +++ b/gcc/tree-inline.c @@ -1920,6 +1920,11 @@ inlinable_function_p (tree fn) 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; } |