diff options
author | bonzini <bonzini@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-07-14 07:30:23 +0000 |
---|---|---|
committer | bonzini <bonzini@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-07-14 07:30:23 +0000 |
commit | 0a534ba7c09a3afa3ca24fc1981585a3a431bc70 (patch) | |
tree | 24070b8bb3608402594a7c1884532c74eaa969a8 /gcc/stmt.c | |
parent | 292718d4a58f7fb34f403c0b750bcbb7548fda2d (diff) | |
download | gcc-0a534ba7c09a3afa3ca24fc1981585a3a431bc70.tar.gz |
2004-07-14 Paolo Bonzini <bonzini@gnu.org>
* expr.c (enqueue_insn, finish_expr_for_function,
protect_from_queue, queued_subexp_p, mark_queue,
emit_insns_enqueued_after_mark, emit_queue,
expand_increment): Remove.
(store_constructor): Expand increment as an assignment.
(expand_expr_real_1 <case PREINCREMENT_EXPR,
case PREDECREMENT_EXPR, case POSTINCREMENT_EXPR,
case POSTDECREMENT_EXPR>): Abort.
* expr.h (QUEUED_VAR, QUEUED_INSN, QUEUED_COPY,
QUEUED_BODY, QUEUED_NEXT, finish_expr_for_function,
protect_from_queue, emit_queue, queued_subexp_p): Remove.
* function.h (pending_chain, x_pending_chain): Remove.
* rtl.def (QUEUED): Remove.
* emit-rtl.c (copy_insn_1, copy_most_rtx,
set_used_flags, verify_rtx_sharing): Remove references to QUEUED.
* genattrtab.c (attr_copy_rtx, clear_struct_flag,
encode_units_mask): Likewise.
* local-alloc.c (equiv_init_varies_p): Likewise.
* rtl.c (copy_rtx): Likewise.
* rtlanal.c (rtx_unstable_p, rtx_varies_p): Likewise.
* simplify-rtx.c (simplify_gen_subreg): Likewise.
* config/mn10300/mn10300.c (legitimate_pic_operand_p): Likewise.
* builtins.c (expand_builtin, expand_builtin_apply,
expand_builtin_mathfn, expand_builtin_mathfn_2,
expand_builtin_mathfn_3, expand_builtin_setjmp_setup):
Remove calls to emit_queue and protect_from_queue.
* calls.c (expand_call, precompute_arguments,
precompute_register_parameters, rtx_for_function_call,
store_one_arg): Likewise.
* dojump.c (do_compare_and_jump, do_jump): Likewise.
* explow.c (memory_address): Likewise.
* expmed.c (clear_by_pieces_1, clear_storage,
clear_storage_via_libcall, emit_group_load,
emit_group_store, emit_store_flag,
expand_expr_real_1, store_by_pieces,
store_constructor, store_expr, try_casesi,
try_tablejump): Likewise.
* function.c (expand_pending_sizes): Likewise.
* optabs.c (emit_cmp_and_jump_insns,
emit_conditional_add, emit_conditional_move,
expand_fix, expand_float, prepare_cmp_insn): Likewise.
* stmt.c (emit_case_bit_tests,
expand_asm_expr, expand_computed_goto,
expand_decl_init, expand_end_case_type,
expand_end_stmt_expr, expand_expr_stmt_value,
expand_return, expand_start_case,
optimize_tail_recursion): Likewise.
* config/c4x/c4x.c (c4x_expand_builtin): Likewise.
* config/s390/s390.c (s390_expand_cmpmem): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@84675 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/stmt.c')
-rw-r--r-- | gcc/stmt.c | 27 |
1 files changed, 1 insertions, 26 deletions
diff --git a/gcc/stmt.c b/gcc/stmt.c index a26d8e6097b..e9c6e5e2296 100644 --- a/gcc/stmt.c +++ b/gcc/stmt.c @@ -430,7 +430,6 @@ expand_computed_goto (tree exp) x = convert_memory_address (Pmode, x); - emit_queue (); do_pending_stack_adjust (); emit_indirect_jump (x); } @@ -1060,7 +1059,7 @@ expand_asm_operands (tree string, tree outputs, tree inputs, if ((! allows_mem && MEM_P (op)) || GET_CODE (op) == CONCAT) { - real_output_rtx[i] = protect_from_queue (op, 1); + real_output_rtx[i] = op; op = gen_reg_rtx (GET_MODE (op)); if (is_inout) emit_move_insn (op, real_output_rtx[i]); @@ -1185,13 +1184,6 @@ expand_asm_operands (tree string, tree outputs, tree inputs, generating_concat_p = 0; - for (i = 0; i < ninputs - ninout; i++) - ASM_OPERANDS_INPUT (body, i) - = protect_from_queue (ASM_OPERANDS_INPUT (body, i), 0); - - for (i = 0; i < noutputs; i++) - output_rtx[i] = protect_from_queue (output_rtx[i], 1); - /* For in-out operands, copy output rtx to input rtx. */ for (i = 0; i < ninout; i++) { @@ -1362,9 +1354,6 @@ expand_asm_expr (tree exp) TREE_VALUE (tail) = o[i]; } } - - /* Those MODIFY_EXPRs could do autoincrements. */ - emit_queue (); } /* A subroutine of expand_asm_operands. Check that all operands have @@ -1626,8 +1615,6 @@ expand_expr_stmt (tree exp) /* Free any temporaries used to evaluate this expression. */ free_temp_slots (); - - emit_queue (); } /* Warn if EXP contains any computations whose results are not used. @@ -2014,7 +2001,6 @@ expand_return (tree retval) if (TREE_CODE (TREE_TYPE (TREE_TYPE (current_function_decl))) == VOID_TYPE) { expand_expr (retval, NULL_RTX, VOIDmode, 0); - emit_queue (); expand_null_return (); return; } @@ -2144,7 +2130,6 @@ expand_return (tree retval) result_reg_mode = tmpmode; result_reg = gen_reg_rtx (result_reg_mode); - emit_queue (); for (i = 0; i < n_regs; i++) emit_move_insn (operand_subword (result_reg, i, 0, result_reg_mode), result_pseudos[i]); @@ -2167,7 +2152,6 @@ expand_return (tree retval) val = assign_temp (nt, 0, 0, 1); val = expand_expr (retval_rhs, val, GET_MODE (val), 0); val = force_not_mem (val); - emit_queue (); /* Return the calculated value. */ expand_value_return (shift_return_value (val)); } @@ -2175,7 +2159,6 @@ expand_return (tree retval) { /* No hard reg used; calculate value into hard return reg. */ expand_expr (retval, const0_rtx, VOIDmode, 0); - emit_queue (); expand_value_return (result_rtl); } } @@ -2682,13 +2665,11 @@ expand_decl_init (tree decl) || code == POINTER_TYPE || code == REFERENCE_TYPE) expand_assignment (decl, convert (TREE_TYPE (decl), integer_zero_node), 0); - emit_queue (); } else if (DECL_INITIAL (decl) && TREE_CODE (DECL_INITIAL (decl)) != TREE_LIST) { emit_line_note (DECL_SOURCE_LOCATION (decl)); expand_assignment (decl, DECL_INITIAL (decl), 0); - emit_queue (); } /* Don't let the initialization count as "using" the variable. */ @@ -2801,7 +2782,6 @@ expand_start_case (int exit_flag, tree expr, tree type, nesting_stack = thiscase; do_pending_stack_adjust (); - emit_queue (); /* Make sure case_stmt.start points to something that won't need any transformation before expand_end_case. */ @@ -3281,8 +3261,6 @@ emit_case_bit_tests (tree index_type, tree index_expr, tree minval, convert (index_type, index_expr), convert (index_type, minval))); index = expand_expr (index_expr, NULL_RTX, VOIDmode, 0); - emit_queue (); - index = protect_from_queue (index, 0); do_pending_stack_adjust (); mode = TYPE_MODE (index_type); @@ -3434,7 +3412,6 @@ expand_end_case_type (tree orig_index, tree orig_type) if (count == 0) { expand_expr (index_expr, const0_rtx, VOIDmode, 0); - emit_queue (); emit_jump (default_label); } @@ -3503,10 +3480,8 @@ expand_end_case_type (tree orig_index, tree orig_type) } } - emit_queue (); do_pending_stack_adjust (); - index = protect_from_queue (index, 0); if (MEM_P (index)) index = copy_to_reg (index); if (GET_CODE (index) == CONST_INT |