summaryrefslogtreecommitdiffstats
path: root/contrib/gcc/c-objc-common.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/gcc/c-objc-common.c')
-rw-r--r--contrib/gcc/c-objc-common.c15
1 files changed, 5 insertions, 10 deletions
diff --git a/contrib/gcc/c-objc-common.c b/contrib/gcc/c-objc-common.c
index fe0c0d5..0efa2ad 100644
--- a/contrib/gcc/c-objc-common.c
+++ b/contrib/gcc/c-objc-common.c
@@ -118,17 +118,12 @@ c_cannot_inline_tree_fn (tree *fnp)
}
}
- if (! DECL_FILE_SCOPE_P (fn))
+ if (DECL_LANG_SPECIFIC (fn)->pending_sizes)
{
- /* If a nested function has pending sizes, we may have already
- saved them. */
- if (DECL_LANG_SPECIFIC (fn)->pending_sizes)
- {
- if (do_warning)
- warning ("%Jnested function '%F' can never be inlined because it "
- "has possibly saved pending sizes", fn, fn);
- goto cannot_inline;
- }
+ if (do_warning)
+ warning ("%Jfunction '%F' can never be inlined because it has "
+ "pending sizes", fn, fn);
+ goto cannot_inline;
}
return 0;
OpenPOWER on IntegriCloud