diff options
author | bothner <bothner@138bc75d-0d04-0410-961f-82ee72b054a4> | 1995-02-28 23:06:49 +0000 |
---|---|---|
committer | bothner <bothner@138bc75d-0d04-0410-961f-82ee72b054a4> | 1995-02-28 23:06:49 +0000 |
commit | b482b911eeebfe45fac8f52c12d2b8d01dbaef60 (patch) | |
tree | fc9bc3eff5c42fa1779643f65fa32c27c9c631d6 | |
parent | c932471aa2453cc433c74ed3a5ae84b72635cdf2 (diff) | |
download | ppe42-gcc-b482b911eeebfe45fac8f52c12d2b8d01dbaef60.tar.gz ppe42-gcc-b482b911eeebfe45fac8f52c12d2b8d01dbaef60.zip |
* tree.c (staticp): Use FUNCTION_NEEDS_STATIC_CHAIN.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@9097 138bc75d-0d04-0410-961f-82ee72b054a4
-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 cdbba0ce2a9..ff229ac9e2a 100644 --- a/gcc/tree.c +++ b/gcc/tree.c @@ -1969,7 +1969,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 ! FUNCTION_NEEDS_STATIC_CHAIN (arg); case VAR_DECL: return TREE_STATIC (arg) || DECL_EXTERNAL (arg); |