Commit 290c7d58 by Per Bothner

* c-decl.c (grokdeclarator): Maybe set FUNCTION_NEEDS_STATIC_CHAIN.

From-SVN: r8937
parent 1ce7b471
...@@ -4864,6 +4864,8 @@ grokdeclarator (declarator, declspecs, decl_context, initialized) ...@@ -4864,6 +4864,8 @@ grokdeclarator (declarator, declspecs, decl_context, initialized)
if (extern_ref) if (extern_ref)
DECL_EXTERNAL (decl) = 1; DECL_EXTERNAL (decl) = 1;
else if (current_function_decl != NULL_TREE)
FUNCTION_NEEDS_STATIC_CHAIN (decl) = 1;
/* Record absence of global scope for `static' or `auto'. */ /* Record absence of global scope for `static' or `auto'. */
TREE_PUBLIC (decl) TREE_PUBLIC (decl)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment