diff options
author | Kaveh R. Ghazi <ghazi@caip.rutgers.edu> | 1999-01-23 19:45:50 +0000 |
---|---|---|
committer | Kaveh Ghazi <ghazi@gcc.gnu.org> | 1999-01-23 19:45:50 +0000 |
commit | 9b3142b340baab707d4e4c45f70fb566f15019de (patch) | |
tree | 55c79465cdc5b1c6462772036b913316f9fc2f6f /gcc/recog.h | |
parent | 5949a9fc20d8cfeff1a4174cd6c433a5bd753ae6 (diff) | |
download | gcc-9b3142b340baab707d4e4c45f70fb566f15019de.zip gcc-9b3142b340baab707d4e4c45f70fb566f15019de.tar.gz gcc-9b3142b340baab707d4e4c45f70fb566f15019de.tar.bz2 |
final.c (bb_str): Qualify a char* with the keyword `const'.
* 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.
From-SVN: r24834
Diffstat (limited to 'gcc/recog.h')
-rw-r--r-- | gcc/recog.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/gcc/recog.h b/gcc/recog.h index fc4719b..79f22f9 100644 --- a/gcc/recog.h +++ b/gcc/recog.h @@ -32,7 +32,7 @@ struct operand_alternative { /* Pointer to the beginning of the constraint string for this alternative, for easier access by alternative number. */ - char *constraint; + const char *constraint; /* The register class valid for this alternative (possibly NO_REGS). */ enum reg_class class; @@ -153,7 +153,7 @@ extern int recog_n_alternatives; extern enum machine_mode recog_operand_mode[]; /* Indexed by N, gives the constraint string for operand N. */ -extern char *recog_constraints[]; +extern const char *recog_constraints[]; /* Indexed by N, gives the type (in, out, inout) for operand N. */ extern enum op_type recog_op_type[]; @@ -176,9 +176,9 @@ extern struct operand_alternative recog_op_alt[MAX_RECOG_OPERANDS][MAX_RECOG_ALT /* These are vectors indexed by insn-code. Details in genoutput.c. */ -extern char *const insn_template[]; +extern const char *const insn_template[]; -extern char *(*const insn_outfun[]) (); +extern const char *(*const insn_outfun[]) (); extern const int insn_n_operands[]; @@ -192,7 +192,7 @@ extern const int insn_n_alternatives[]; and second by the operand number. Details in genoutput.c. */ #ifdef REGISTER_CONSTRAINTS /* Avoid undef sym in certain broken linkers. */ -extern char *const insn_operand_constraint[][MAX_RECOG_OPERANDS]; +extern const char *const insn_operand_constraint[][MAX_RECOG_OPERANDS]; #endif #ifndef REGISTER_CONSTRAINTS /* Avoid undef sym in certain broken linkers. */ @@ -205,4 +205,4 @@ extern const char insn_operand_strict_low[][MAX_RECOG_OPERANDS]; extern int (*const insn_operand_predicate[][MAX_RECOG_OPERANDS]) (); -extern char * insn_name[]; +extern const char * insn_name[]; |