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
This commit is contained in:
parent
ab5b838291
commit
b26eca6af7
2 changed files with 10 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
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
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue