diff options
Diffstat (limited to 'gcc/attribs.c')
-rw-r--r-- | gcc/attribs.c | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/gcc/attribs.c b/gcc/attribs.c index a20ff35..9322c42 100644 --- a/gcc/attribs.c +++ b/gcc/attribs.c @@ -76,8 +76,6 @@ static tree handle_alias_attribute PARAMS ((tree *, tree, tree, int, static tree handle_no_instrument_function_attribute PARAMS ((tree *, tree, tree, int, bool *)); -static tree handle_no_check_memory_usage_attribute PARAMS ((tree *, tree, tree, - int, bool *)); static tree handle_malloc_attribute PARAMS ((tree *, tree, tree, int, bool *)); static tree handle_no_limit_stack_attribute PARAMS ((tree *, tree, tree, int, @@ -131,8 +129,6 @@ static const struct attribute_spec c_common_attribute_table[] = handle_alias_attribute }, { "no_instrument_function", 0, 0, true, false, false, handle_no_instrument_function_attribute }, - { "no_check_memory_usage", 0, 0, true, false, false, - handle_no_check_memory_usage_attribute }, { "malloc", 0, 0, true, false, false, handle_malloc_attribute }, { "no_stack_limit", 0, 0, true, false, false, @@ -1044,39 +1040,6 @@ handle_no_instrument_function_attribute (node, name, args, flags, no_add_attrs) return NULL_TREE; } -/* Handle a "no_check_memory_usage" attribute; arguments as in - struct attribute_spec.handler. */ - -static tree -handle_no_check_memory_usage_attribute (node, name, args, flags, no_add_attrs) - tree *node; - tree name; - tree args ATTRIBUTE_UNUSED; - int flags ATTRIBUTE_UNUSED; - bool *no_add_attrs; -{ - tree decl = *node; - - if (TREE_CODE (decl) != FUNCTION_DECL) - { - error_with_decl (decl, - "`%s' attribute applies only to functions", - IDENTIFIER_POINTER (name)); - *no_add_attrs = true; - } - else if (DECL_INITIAL (decl)) - { - error_with_decl (decl, - "can't set `%s' attribute after definition", - IDENTIFIER_POINTER (name)); - *no_add_attrs = true; - } - else - DECL_NO_CHECK_MEMORY_USAGE (decl) = 1; - - return NULL_TREE; -} - /* Handle a "malloc" attribute; arguments as in struct attribute_spec.handler. */ |