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/genoutput.c | |
parent | 7df8690a400db113b722052c4dd8f374ba20d45c (diff) | |
download | ppe42-gcc-a8482e91d66166ec082f4240b4192dbc3f294982.tar.gz ppe42-gcc-a8482e91d66166ec082f4240b4192dbc3f294982.zip |
* 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/genoutput.c')
-rw-r--r-- | gcc/genoutput.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/gcc/genoutput.c b/gcc/genoutput.c index 4e7a3339441..30d1280b76d 100644 --- a/gcc/genoutput.c +++ b/gcc/genoutput.c @@ -233,7 +233,7 @@ output_epilogue () { register struct data *d; - printf ("\nchar * const insn_template[] =\n {\n"); + printf ("\nconst char * const insn_template[] =\n {\n"); for (d = insn_data; d; d = d->next) { if (d->template) @@ -243,7 +243,7 @@ output_epilogue () } printf (" };\n"); - printf ("\nchar *(*const insn_outfun[])() =\n {\n"); + printf ("\nconst char *(*const insn_outfun[])() =\n {\n"); for (d = insn_data; d; d = d->next) { if (d->outfun) @@ -263,7 +263,7 @@ output_epilogue () } printf (" };\n"); - printf ("\nchar *insn_name[] =\n {\n"); + printf ("\nconst char *insn_name[] =\n {\n"); { int offset = 0; int next; @@ -304,7 +304,7 @@ output_epilogue () } } printf (" };\n"); - printf ("char **insn_name_ptr = insn_name;\n"); + printf ("const char **insn_name_ptr = insn_name;\n"); printf ("\nconst int insn_n_operands[] =\n {\n"); for (d = insn_data; d; d = d->next) @@ -318,7 +318,7 @@ output_epilogue () if (have_constraints) { - printf ("\nchar *const insn_operand_constraint[][MAX_RECOG_OPERANDS] =\n {\n"); + printf ("\nconst char *const insn_operand_constraint[][MAX_RECOG_OPERANDS] =\n {\n"); for (d = insn_data; d; d = d->next) { register int i; @@ -595,7 +595,7 @@ process_template (d, template) d->template = 0; d->outfun = 1; - printf ("\nstatic char *\n"); + printf ("\nstatic const char *\n"); printf ("output_%d (operands, insn)\n", d->code_number); printf (" rtx *operands ATTRIBUTE_UNUSED;\n"); printf (" rtx insn ATTRIBUTE_UNUSED;\n"); @@ -608,7 +608,7 @@ process_template (d, template) if (template[0] == '@') { - printf (" static /*const*/ char *const strings_%d[] = {\n", + printf (" static const char *const strings_%d[] = {\n", d->code_number); for (i = 0, cp = &template[1]; *cp; ) |