diff options
author | Richard Kenner <kenner@vlsi1.ultra.nyu.edu> | 2001-12-05 22:37:41 +0000 |
---|---|---|
committer | Richard Kenner <kenner@gcc.gnu.org> | 2001-12-05 17:37:41 -0500 |
commit | 37a08a298f85099eda5290d250c95eaf707e6c6f (patch) | |
tree | 16fd35f587497e051ac05a7ae930fd07de7f29ba /gcc/expr.h | |
parent | 0228de0c4f91cb2cc0381f2f2c403caab6e7d82e (diff) | |
download | gcc-37a08a298f85099eda5290d250c95eaf707e6c6f.zip gcc-37a08a298f85099eda5290d250c95eaf707e6c6f.tar.gz gcc-37a08a298f85099eda5290d250c95eaf707e6c6f.tar.bz2 |
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
Diffstat (limited to 'gcc/expr.h')
-rw-r--r-- | gcc/expr.h | 26 |
1 files changed, 4 insertions, 22 deletions
@@ -48,26 +48,9 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA EXPAND_INITIALIZER is similar but also record any labels on forced_labels. EXPAND_CONST_ADDRESS means it is ok to return a MEM whose address is a constant that is not a legitimate address. - EXPAND_MEMORY_USE_* are explained below. */ -enum expand_modifier {EXPAND_NORMAL, EXPAND_SUM, - EXPAND_CONST_ADDRESS, EXPAND_INITIALIZER, - EXPAND_MEMORY_USE_WO, EXPAND_MEMORY_USE_RW, - EXPAND_MEMORY_USE_BAD, EXPAND_MEMORY_USE_DONT}; - -/* Argument for chkr_* functions. - MEMORY_USE_RO: the pointer reads memory. - MEMORY_USE_WO: the pointer writes to memory. - MEMORY_USE_RW: the pointer modifies memory (ie it reads and writes). An - example is (*ptr)++ - MEMORY_USE_BAD: use this if you don't know the behavior of the pointer, or - if you know there are no pointers. Using an INDIRECT_REF - with MEMORY_USE_BAD will abort. - MEMORY_USE_TW: just test for writing, without update. Special. - MEMORY_USE_DONT: the memory is neither read nor written. This is used by - '->' and '.'. */ -enum memory_use_mode {MEMORY_USE_BAD = 0, MEMORY_USE_RO = 1, - MEMORY_USE_WO = 2, MEMORY_USE_RW = 3, - MEMORY_USE_TW = 6, MEMORY_USE_DONT = 99}; + EXPAND_WRITE means we are only going to write to the resulting rtx. */ +enum expand_modifier {EXPAND_NORMAL, EXPAND_SUM, EXPAND_CONST_ADDRESS, + EXPAND_INITIALIZER, EXPAND_WRITE}; /* Prevent the compiler from deferring stack pops. See inhibit_defer_pop for more information. */ @@ -119,8 +102,7 @@ struct args_size /* Convert the implicit sum in a `struct args_size' into an rtx. */ #define ARGS_SIZE_RTX(SIZE) \ ((SIZE).var == 0 ? GEN_INT ((SIZE).constant) \ - : expand_expr (ARGS_SIZE_TREE (SIZE), NULL_RTX, VOIDmode, \ - EXPAND_MEMORY_USE_BAD)) + : expand_expr (ARGS_SIZE_TREE (SIZE), NULL_RTX, VOIDmode, 0)) /* Supply a default definition for FUNCTION_ARG_PADDING: usually pad upward, but pad short args downward on |