diff options
author | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-01-23 19:45:50 +0000 |
---|---|---|
committer | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-01-23 19:45:50 +0000 |
commit | a8482e91d66166ec082f4240b4192dbc3f294982 (patch) | |
tree | 55c79465cdc5b1c6462772036b913316f9fc2f6f /gcc/recog.c | |
parent | 7df8690a400db113b722052c4dd8f374ba20d45c (diff) | |
download | gcc-a8482e91d66166ec082f4240b4192dbc3f294982.tar.gz |
* final.c (bb_str): Qualify a char* with the keyword `const'.
(add_bb_string, final_scan_insn, output_asm_insn): Likewise.
* fix-header.c (read_scan_file): Likewise.
* genoutput.c (output_epilogue, process_template): Likewise.
* local-alloc.c (requires_inout, block_alloc): Likewise.
* output.h (output_asm_insn, assemble_string): Likewise.
* recog.c (recog_constraints, check_asm_operands,
decode_asm_operands, extract_insn, preprocess_constraints,
constrain_operands): Likewise.
* recog.h (operand_alternative, recog_constraints, insn_template,
insn_outfun, insn_operand_constraint, insn_name): Likewise.
* regclass.c (record_reg_classes, scan_one_insn): Likewise.
* regmove.c (find_matches): Likewise.
* reload.c (alternative_allows_memconst): Likewise.
* reload1.c (constraint_accepts_reg_p,
reload_cse_simplify_operands): Likewise.
* rtl.h (decode_asm_operands): Likewise.
* scan.h (fn_decl): Likewise.
* varasm.c (assemble_string): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@24834 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/recog.c')
-rw-r--r-- | gcc/recog.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/gcc/recog.c b/gcc/recog.c index db06d0437df..a0dafd5ccbf 100644 --- a/gcc/recog.c +++ b/gcc/recog.c @@ -94,7 +94,7 @@ int recog_n_alternatives; enum machine_mode recog_operand_mode[MAX_RECOG_OPERANDS]; /* Indexed by N, gives the constraint string for operand N. */ -char *recog_constraints[MAX_RECOG_OPERANDS]; +const char *recog_constraints[MAX_RECOG_OPERANDS]; /* Indexed by N, gives the type (in, out, inout) for operand N. */ enum op_type recog_op_type[MAX_RECOG_OPERANDS]; @@ -162,7 +162,7 @@ check_asm_operands (x) { int noperands; rtx *operands; - char **constraints; + const char **constraints; int i; /* Post-reload, be more strict with things. */ @@ -181,13 +181,13 @@ check_asm_operands (x) return 1; operands = (rtx *) alloca (noperands * sizeof (rtx)); - constraints = (char **) alloca (noperands * sizeof (char *)); + constraints = (const char **) alloca (noperands * sizeof (char *)); decode_asm_operands (x, operands, NULL_PTR, constraints, NULL_PTR); for (i = 0; i < noperands; i++) { - char *c = constraints[i]; + const char *c = constraints[i]; if (ISDIGIT ((unsigned char)c[0])) c = constraints[c[0] - '0']; @@ -1422,7 +1422,7 @@ decode_asm_operands (body, operands, operand_locs, constraints, modes) rtx body; rtx *operands; rtx **operand_locs; - char **constraints; + const char **constraints; enum machine_mode *modes; { register int i; @@ -2022,7 +2022,7 @@ extract_insn (insn) recog_constraints, recog_operand_mode); if (noperands > 0) { - char *p = recog_constraints[0]; + const char *p = recog_constraints[0]; recog_n_alternatives = 1; while (*p) recog_n_alternatives += (*p++ == ','); @@ -2080,7 +2080,7 @@ preprocess_constraints () { int j; struct operand_alternative *op_alt; - char *p = recog_constraints[i]; + const char *p = recog_constraints[i]; op_alt = recog_op_alt[i]; @@ -2210,7 +2210,7 @@ int constrain_operands (strict) int strict; { - char *constraints[MAX_RECOG_OPERANDS]; + const char *constraints[MAX_RECOG_OPERANDS]; int matching_operands[MAX_RECOG_OPERANDS]; int earlyclobber[MAX_RECOG_OPERANDS]; register int c; @@ -2239,7 +2239,7 @@ constrain_operands (strict) { register rtx op = recog_operand[opno]; enum machine_mode mode = GET_MODE (op); - register char *p = constraints[opno]; + register const char *p = constraints[opno]; int offset = 0; int win = 0; int val; |