From: Richard Kenner Date: Wed, 16 Nov 1994 00:28:56 +0000 (-0500) Subject: (staticp): A non-nested function is always static. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1324c5deb7f14b9b44806c91c1589fe396fec7f9;p=gcc.git (staticp): A non-nested function is always static. From-SVN: r8451 --- diff --git a/gcc/tree.c b/gcc/tree.c index 1787d0c6b9d..d63a7a5a1bd 100644 --- a/gcc/tree.c +++ b/gcc/tree.c @@ -1915,11 +1915,9 @@ staticp (arg) switch (TREE_CODE (arg)) { case FUNCTION_DECL: - /* Nested functions aren't static. Since taking their address + /* Nested functions aren't static, since taking their address involves a trampoline. */ - if (decl_function_context (arg) != 0) - return 0; - /* ... fall through ... */ + return decl_function_context (arg) == 0; case VAR_DECL: return TREE_STATIC (arg) || DECL_EXTERNAL (arg);