diff options
author | Richard Sandiford <rdsandiford@googlemail.com> | 2014-06-04 17:34:03 +0000 |
---|---|---|
committer | Richard Sandiford <rsandifo@gcc.gnu.org> | 2014-06-04 17:34:03 +0000 |
commit | 5efe5dec7a9db46a8514e6a0e1ef9bacc38cd807 (patch) | |
tree | ce044c3ca53f5e72f7cc64bc3e179dc07f77c216 /gcc/reg-stack.c | |
parent | 29d70a0f6998f34ef7f6fbeff2455dd2d875159f (diff) | |
download | gcc-5efe5dec7a9db46a8514e6a0e1ef9bacc38cd807.tar.gz |
recog.h (alternative_class): New function.
gcc/
* recog.h (alternative_class): New function.
(which_op_alt): Return a const recog_op_alt.
* reg-stack.c (check_asm_stack_operands): Update type accordingly.
(subst_asm_stack_regs): Likewise.
* config/arm/arm.c (note_invalid_constants): Likewise.
* regcprop.c (copyprop_hardreg_forward_1): Likewise. Don't modify
the operand_alternative; use alternative class instead.
* sel-sched.c (get_reg_class): Likewise.
* regrename.c (build_def_use): Likewise.
(hide_operands, restore_operands, record_out_operands): Update type
accordingly.
From-SVN: r211238
Diffstat (limited to 'gcc/reg-stack.c')
-rw-r--r-- | gcc/reg-stack.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/reg-stack.c b/gcc/reg-stack.c index a2d76b44b9a..443a65a504b 100644 --- a/gcc/reg-stack.c +++ b/gcc/reg-stack.c @@ -482,7 +482,7 @@ check_asm_stack_operands (rtx insn) PATTERN (insn) = gen_rtx_USE (VOIDmode, const0_rtx); return 0; } - operand_alternative *op_alt = which_op_alt (); + const operand_alternative *op_alt = which_op_alt (); /* Strip SUBREGs here to make the following code simpler. */ for (i = 0; i < recog_data.n_operands; i++) @@ -2030,7 +2030,7 @@ subst_asm_stack_regs (rtx insn, stack_ptr regstack) constrain_operands (1); preprocess_constraints (); - operand_alternative *op_alt = which_op_alt (); + const operand_alternative *op_alt = which_op_alt (); get_asm_operands_in_out (body, &n_outputs, &n_inputs); |