aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/tree.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/cp/tree.c')
-rw-r--r--gcc/cp/tree.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cp/tree.c b/gcc/cp/tree.c
index c547209..4f1b168 100644
--- a/gcc/cp/tree.c
+++ b/gcc/cp/tree.c
@@ -2131,7 +2131,7 @@ cp_cannot_inline_tree_fn (fnp)
{
tree fn = *fnp;
- if (optimize == 0
+ if (flag_really_no_inline
&& lookup_attribute ("always_inline", DECL_ATTRIBUTES (fn)) == NULL)
return 1;