From 37a08a298f85099eda5290d250c95eaf707e6c6f Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Wed, 5 Dec 2001 22:37:41 +0000 Subject: attribs.c (handle_no_check_memory_usage_atribute): Deleted. * 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. From-SVN: r47697 --- gcc/varasm.c | 22 +--------------------- 1 file changed, 1 insertion(+), 21 deletions(-) (limited to 'gcc/varasm.c') diff --git a/gcc/varasm.c b/gcc/varasm.c index 875430f..572641c 100644 --- a/gcc/varasm.c +++ b/gcc/varasm.c @@ -61,10 +61,6 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA #define ASM_STABS_OP "\t.stabs\t" #endif -/* Define the prefix to use when check_memory_usage_flag is enable. */ -#define CHKR_PREFIX "_CHKR_" -#define CHKR_PREFIX_SIZE (sizeof (CHKR_PREFIX) - 1) - /* The (assembler) name of the first globally-visible object output. */ const char *first_global_object_name; const char *weak_global_object_name; @@ -957,25 +953,12 @@ make_decl_rtl (decl, asmspec) && name == IDENTIFIER_POINTER (DECL_NAME (decl))) { char *label; + ASM_FORMAT_PRIVATE_NAME (label, name, var_labelno); var_labelno++; new_name = label; } - /* When -fprefix-function-name is used, the functions - names are prefixed. Only nested function names are not - prefixed. */ - else if (flag_prefix_function_name && TREE_CODE (decl) == FUNCTION_DECL) - { - size_t name_len = IDENTIFIER_LENGTH (DECL_ASSEMBLER_NAME (decl)); - char *pname; - - pname = alloca (name_len + CHKR_PREFIX_SIZE + 1); - memcpy (pname, CHKR_PREFIX, CHKR_PREFIX_SIZE); - memcpy (pname + CHKR_PREFIX_SIZE, name, name_len + 1); - new_name = pname; - } - if (name != new_name) { SET_DECL_ASSEMBLER_NAME (decl, get_identifier (new_name)); @@ -1837,9 +1820,6 @@ assemble_name (file, name) tree id; STRIP_NAME_ENCODING (real_name, name); - if (flag_prefix_function_name - && ! memcmp (real_name, CHKR_PREFIX, CHKR_PREFIX_SIZE)) - real_name = real_name + CHKR_PREFIX_SIZE; id = maybe_get_identifier (real_name); if (id) -- cgit v1.1