From b26eca6af7449de587e1f7073ab2103998fc21cc Mon Sep 17 00:00:00 2001 From: Richard Guenther Date: Wed, 22 Aug 2007 08:10:42 +0000 Subject: [PATCH] tree-inline.c (inlinable_function_p): Restore disregarding inline limits for GNU extern inline functions. 2007-08-22 Richard Guenther * tree-inline.c (inlinable_function_p): Restore disregarding inline limits for GNU extern inline functions. From-SVN: r127690 --- gcc/ChangeLog | 5 +++++ gcc/tree-inline.c | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 234bc4505f5..fd5015242c6 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2007-08-22 Richard Guenther + + * tree-inline.c (inlinable_function_p): Restore disregarding + inline limits for GNU extern inline functions. + 2007-08-22 Richard Guenther PR middle-end/32563 diff --git a/gcc/tree-inline.c b/gcc/tree-inline.c index 16198385496..a24f70d0562 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; }