aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-inline.c
diff options
context:
space:
mode:
authorRichard Guenther <rguenther@suse.de>2007-08-22 08:10:42 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2007-08-22 08:10:42 +0000
commitb26eca6af7449de587e1f7073ab2103998fc21cc (patch)
treeee42064844e2a31880498023a1a7d1dfec6f48c0 /gcc/tree-inline.c
parentab5b838291744491de7731c928c3c717eb70418b (diff)
downloadgcc-b26eca6af7449de587e1f7073ab2103998fc21cc.zip
gcc-b26eca6af7449de587e1f7073ab2103998fc21cc.tar.gz
gcc-b26eca6af7449de587e1f7073ab2103998fc21cc.tar.bz2
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
Diffstat (limited to 'gcc/tree-inline.c')
-rw-r--r--gcc/tree-inline.c5
1 files changed, 5 insertions, 0 deletions
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;
}