diff options
author | Per Bothner <bothner@gcc.gnu.org> | 1995-02-13 12:54:47 -0800 |
---|---|---|
committer | Per Bothner <bothner@gcc.gnu.org> | 1995-02-13 12:54:47 -0800 |
commit | 290c7d58f7088da3c93d59de0e6069344efbb4c1 (patch) | |
tree | 50ea72dce1471e2026089f2063de8de57fbeac02 /gcc | |
parent | 1ce7b471ecb2b38ee8fbaf19f080d535a8da5c9b (diff) | |
download | gcc-290c7d58f7088da3c93d59de0e6069344efbb4c1.zip gcc-290c7d58f7088da3c93d59de0e6069344efbb4c1.tar.gz gcc-290c7d58f7088da3c93d59de0e6069344efbb4c1.tar.bz2 |
* c-decl.c (grokdeclarator): Maybe set FUNCTION_NEEDS_STATIC_CHAIN.
From-SVN: r8937
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/c-decl.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/c-decl.c b/gcc/c-decl.c index 12b24d0..9d6a453 100644 --- a/gcc/c-decl.c +++ b/gcc/c-decl.c @@ -4864,6 +4864,8 @@ grokdeclarator (declarator, declspecs, decl_context, initialized) if (extern_ref) 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'. */ TREE_PUBLIC (decl) |