* 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
2007-08-22 Richard Guenther <rguenther@suse.de>
+ * tree-inline.c (inlinable_function_p): Restore disregarding
+ inline limits for GNU extern inline functions.
+
+2007-08-22 Richard Guenther <rguenther@suse.de>
+
PR middle-end/32563
* tree.c (host_integerp): Treat sizetype as signed as it is
sign-extended.
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;
}