diff options
Diffstat (limited to 'gcc/varasm.c')
-rw-r--r-- | gcc/varasm.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/varasm.c b/gcc/varasm.c index f4532b8..91ec68a 100644 --- a/gcc/varasm.c +++ b/gcc/varasm.c @@ -4212,8 +4212,7 @@ initializer_constant_valid_p (tree value, tree endtype) /* Taking the address of a nested function involves a trampoline, unless we don't need or want one. */ if (TREE_CODE (op0) == FUNCTION_DECL - && decl_function_context (op0) - && !DECL_NO_STATIC_CHAIN (op0) + && DECL_STATIC_CHAIN (op0) && !TREE_NO_TRAMPOLINE (value)) return NULL_TREE; /* "&{...}" requires a temporary to hold the constructed |