From: rguenth Date: Wed, 22 Aug 2007 08:10:42 +0000 (+0000) Subject: 2007-08-22 Richard Guenther X-Git-Tag: upstream/4.9.2~46770 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a01a64473fad0556ef8355361e568bafb63cc4d7;p=platform%2Fupstream%2Flinaro-gcc.git 2007-08-22 Richard Guenther * tree-inline.c (inlinable_function_p): Restore disregarding inline limits for GNU extern inline functions. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@127690 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 234bc45..fd50152 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,10 @@ 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 * tree.c (host_integerp): Treat sizetype as signed as it is sign-extended. 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; }