Commit b26eca6a by Richard Guenther Committed by Richard Biener

tree-inline.c (inlinable_function_p): Restore disregarding inline limits for GNU…

tree-inline.c (inlinable_function_p): Restore disregarding inline limits for GNU extern inline functions.

2007-08-22  Richard Guenther  <rguenther@suse.de>

	* tree-inline.c (inlinable_function_p): Restore disregarding
	inline limits for GNU extern inline functions.

From-SVN: r127690
parent ab5b8382
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.
......
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment