diff options
author | kenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-12-05 22:37:41 +0000 |
---|---|---|
committer | kenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-12-05 22:37:41 +0000 |
commit | 8a06f2d42e7ea26635cdec8c373ddcacef4a5651 (patch) | |
tree | 16fd35f587497e051ac05a7ae930fd07de7f29ba /gcc/attribs.c | |
parent | 1e17e73d9ec782d727fb91d99133a964dbf7fd91 (diff) | |
download | gcc-8a06f2d42e7ea26635cdec8c373ddcacef4a5651.tar.gz |
* attribs.c (handle_no_check_memory_usage_atribute): Deleted.
(c_com): Delete its reference.
* builtins.c: Delete memory checking code.
* calls.c, expr.c, function.c, stmt.c: Likewise.
* builtins.c (expand_builtin_arg_info): Remove reference to
EXPAND_MEMORY_USE_* modifiers.
* explow.c (expr_size): Likewise.
* expr.c (expand_expr, expand_increment): Likewise.
* expr.h (ARGS_SIZE_RTX): Likewise.
* function.c (assign_parms, expand_pending_sizeso): Likewise.
* c-decl.c (duplicate_decls): Don't handle DECL_NO_CHECK_MEMORY_USAGE.
* expr.c (in_check_memory_usage): Delete.
(get_push_address, get_memory_usage_from_modifier): Delete.
(expand_assigment): Use EXPAND_WRITE on destination.
(expand_expr): Delete ro_modifier.
* expr.h (expand_modifier): Delete EXPAND_MEMORY_* entries and
add EXPAND_WRITE.
(memory_use_mode): Delete.
* flags.h (flag_check_memory_usage): Deleted.
(flag_prefix_function_name): Likewise.
* function.c (expand_function_start): Don't set
current_function_check_memory_usage.
* function.h (check_memory_usage): Delete.
* libfuncs.h, optabs.c: Delete chkr_* stuff.
* stmt.c (expand_asm_opernd): Change EXPAND_MEMORY_USE_WO to
EXPAND_WRITE.
* toplev.c (flag_check_memory_usage): Deleted.
(flag_prefix_function_name): Likewise.
(f_options, process_options): Delete references to above.
* tree.h (DECL_NO_CHECK_MEMORY_USAGE): Deleted.
* varasm.c (CHKR_PREFIX): Deleted.
(make_decl_rtl): Remove flag_prefix_function_name handling.
(assemble_name): Likewise.
* doc/extend.texi: Remove no_check_memory_usage attribute.
* doc/invoke.texi: Remove -fcheck-memory-usage
and -fprefix-function-name.
* cp/decl.c (duplicate_decls): Don't copy DECL_NO_CHECK_MEMORY_USAGE.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@47697 138bc75d-0d04-0410-961f-82ee72b054a4
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 a20ff35b36c..9322c421106 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. */ |