diff options
author | YamaArashi <shadow962@live.com> | 2016-02-12 11:35:04 -0800 |
---|---|---|
committer | YamaArashi <shadow962@live.com> | 2016-02-12 11:35:04 -0800 |
commit | fb95ff91be532f3b63786339ea3cb28694aef172 (patch) | |
tree | 1e024434b3ab7fbb48b874344c6dc7e082fb83f7 /gcc/c-decl.c | |
parent | 166e94b61c7150981753e2ad54f1d55149e5f0c7 (diff) |
remove static constuctors/destructors
Diffstat (limited to 'gcc/c-decl.c')
-rwxr-xr-x | gcc/c-decl.c | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/gcc/c-decl.c b/gcc/c-decl.c index 2469655..f61b499 100755 --- a/gcc/c-decl.c +++ b/gcc/c-decl.c @@ -417,10 +417,6 @@ static int keep_next_if_subblocks; static struct binding_level *label_level_chain; -/* Functions called automatically at the beginning and end of execution. */ - -tree static_ctors, static_dtors; - /* Forward declarations. */ static struct binding_level * make_binding_level PROTO((void)); @@ -1993,9 +1989,6 @@ duplicate_decls (newdecl, olddecl, different_binding_level) if (TREE_CODE (newdecl) == FUNCTION_DECL) { - DECL_STATIC_CONSTRUCTOR(newdecl) |= DECL_STATIC_CONSTRUCTOR(olddecl); - DECL_STATIC_DESTRUCTOR (newdecl) |= DECL_STATIC_DESTRUCTOR (olddecl); - DECL_NO_INSTRUMENT_FUNCTION_ENTRY_EXIT (newdecl) |= DECL_NO_INSTRUMENT_FUNCTION_ENTRY_EXIT (olddecl); DECL_NO_CHECK_MEMORY_USAGE (newdecl) @@ -7338,25 +7331,6 @@ finish_function (nested) DECL_ARGUMENTS (fndecl) = 0; } - if (DECL_STATIC_CONSTRUCTOR (fndecl)) - { -#ifndef ASM_OUTPUT_CONSTRUCTOR - if (! flag_gnu_linker) - static_ctors = perm_tree_cons (NULL_TREE, fndecl, static_ctors); - else -#endif - assemble_constructor (IDENTIFIER_POINTER (DECL_NAME (fndecl))); - } - if (DECL_STATIC_DESTRUCTOR (fndecl)) - { -#ifndef ASM_OUTPUT_DESTRUCTOR - if (! flag_gnu_linker) - static_dtors = perm_tree_cons (NULL_TREE, fndecl, static_dtors); - else -#endif - assemble_destructor (IDENTIFIER_POINTER (DECL_NAME (fndecl))); - } - if (! nested) { /* Let the error reporting routines know that we're outside a |