diff options
author | merrill <merrill@138bc75d-0d04-0410-961f-82ee72b054a4> | 1996-03-05 22:16:33 +0000 |
---|---|---|
committer | merrill <merrill@138bc75d-0d04-0410-961f-82ee72b054a4> | 1996-03-05 22:16:33 +0000 |
commit | e38fe3f304a8f7c3bb5c8c4be1193ffc1033c506 (patch) | |
tree | 63bc5488a412b022110e74c60a9e5a5dd5a6d3b6 /gcc/tree.c | |
parent | 8fd50fe18cf3bd4728443a178ef878d0a83dc865 (diff) | |
download | gcc-e38fe3f304a8f7c3bb5c8c4be1193ffc1033c506.tar.gz |
(staticp): Check DECL_NO_STATIC_CHAIN on nested functions.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@11462 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree.c')
-rw-r--r-- | gcc/tree.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/tree.c b/gcc/tree.c index eda33bb3541..cfceb59ad46 100644 --- a/gcc/tree.c +++ b/gcc/tree.c @@ -2055,7 +2055,7 @@ staticp (arg) case FUNCTION_DECL: /* Nested functions aren't static, since taking their address involves a trampoline. */ - return decl_function_context (arg) == 0; + return decl_function_context (arg) == 0 || DECL_NO_STATIC_CHAIN (arg); case VAR_DECL: return TREE_STATIC (arg) || DECL_EXTERNAL (arg); |