From: Per Bothner Date: Thu, 2 Mar 1995 03:40:59 +0000 (-0800) Subject: Remove Feb 13's FUNCTION_NEEDS_STATIC_CHAIN changes. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6f09c35cdebf2ab0dd8ad0f254ee57bde8b866cc;p=gcc.git Remove Feb 13's FUNCTION_NEEDS_STATIC_CHAIN changes. From-SVN: r9107 --- diff --git a/gcc/c-decl.c b/gcc/c-decl.c index aa0fbe57892..86c1024677d 100644 --- a/gcc/c-decl.c +++ b/gcc/c-decl.c @@ -4884,9 +4884,6 @@ 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) = !(specbits & ((1 << (int) RID_STATIC) | (1 << (int) RID_AUTO))); diff --git a/gcc/tree.h b/gcc/tree.h index d2f07d07122..5b66471bccb 100644 --- a/gcc/tree.h +++ b/gcc/tree.h @@ -947,13 +947,6 @@ struct tree_type alternative would be passed. */ #define DECL_TRANSPARENT_UNION(NODE) ((NODE)->decl.transparent_union) -/* In a FUNCTION_DECL, zero means it is a nested function that needs - a trampoline (closure). If nonzero, it is a normal function. - (A nested function can be static if it doesn't need to reference - stack variables in a surrounding function.) - This is unrelated to whether a function is static in the C sense. */ -#define FUNCTION_NEEDS_STATIC_CHAIN(NODE) ((NODE)->decl.transparent_union) - /* Used in FUNCTION_DECLs to indicate that they should be run automatically at the beginning or end of execution. */ #define DECL_STATIC_CONSTRUCTOR(NODE) ((NODE)->decl.static_ctor_flag)