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-common.c | |
parent | 166e94b61c7150981753e2ad54f1d55149e5f0c7 (diff) |
remove static constuctors/destructors
Diffstat (limited to 'gcc/c-common.c')
-rwxr-xr-x | gcc/c-common.c | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/gcc/c-common.c b/gcc/c-common.c index 936b609..19e9207 100755 --- a/gcc/c-common.c +++ b/gcc/c-common.c @@ -388,8 +388,6 @@ init_attributes () add_attribute (A_UNUSED, "unused", 0, 0, 0); add_attribute (A_CONST, "const", 0, 0, 1); add_attribute (A_T_UNION, "transparent_union", 0, 0, 0); - add_attribute (A_CONSTRUCTOR, "constructor", 0, 0, 1); - add_attribute (A_DESTRUCTOR, "destructor", 0, 0, 1); add_attribute (A_MODE, "mode", 1, 1, 1); add_attribute (A_SECTION, "section", 1, 1, 1); add_attribute (A_ALIGNED, "aligned", 0, 1, 0); @@ -556,30 +554,6 @@ decl_attributes (node, attributes, prefix_attributes) warning ("`%s' attribute ignored", IDENTIFIER_POINTER (name)); break; - case A_CONSTRUCTOR: - if (TREE_CODE (decl) == FUNCTION_DECL - && TREE_CODE (type) == FUNCTION_TYPE - && decl_function_context (decl) == 0) - { - DECL_STATIC_CONSTRUCTOR (decl) = 1; - TREE_USED (decl) = 1; - } - else - warning ("`%s' attribute ignored", IDENTIFIER_POINTER (name)); - break; - - case A_DESTRUCTOR: - if (TREE_CODE (decl) == FUNCTION_DECL - && TREE_CODE (type) == FUNCTION_TYPE - && decl_function_context (decl) == 0) - { - DECL_STATIC_DESTRUCTOR (decl) = 1; - TREE_USED (decl) = 1; - } - else - warning ("`%s' attribute ignored", IDENTIFIER_POINTER (name)); - break; - case A_MODE: if (TREE_CODE (TREE_VALUE (args)) != IDENTIFIER_NODE) warning ("`%s' attribute ignored", IDENTIFIER_POINTER (name)); |