diff options
author | Kaveh R. Ghazi <ghazi@caip.rutgers.edu> | 1999-08-24 13:34:04 +0000 |
---|---|---|
committer | Kaveh Ghazi <ghazi@gcc.gnu.org> | 1999-08-24 13:34:04 +0000 |
commit | 69277eec7740edb7968777c8ca4f43286eab820e (patch) | |
tree | 7e5beb032b12a5f206bc4a2895f87b97907ab018 /gcc/genattr.c | |
parent | 33f58a4e96ff4e46a0f238fac2a7927eb5845f09 (diff) | |
download | gcc-69277eec7740edb7968777c8ca4f43286eab820e.zip gcc-69277eec7740edb7968777c8ca4f43286eab820e.tar.gz gcc-69277eec7740edb7968777c8ca4f43286eab820e.tar.bz2 |
genattr.c (function_unit_desc): Constify a char*.
* genattr.c (function_unit_desc): Constify a char*. Add prototype.
(main): Add prototypes.
* genattrtab.c (substitute_address, write_const_num_delay_slots,
attr_eq, attr_numeral, attr_equal_p, attr_copy_rtx): Prototype.
(write_attr_get): Emit prototypes along with function definition.
(write_eligible_delay): Mark a parameter with ATTRIBUTE_UNUSED.
(write_complex_function): Emit static prototype along with
function definition.
* genemit.c (gen_split): Emit prototypes along with function
definition.
* genoutput.c (output_epilogue): Add prototype to `insn_outfun'.
Likewise for predicates and `insn_operand_predicate'.
(process_template): Emit static prototype along with function
definition.
* genrecog.c (make_insn_sequence): Constify a char*. Add
prototypes for get_split_*().
(write_subroutine): Emit prototypes along with function
definition.
From-SVN: r28822
Diffstat (limited to 'gcc/genattr.c')
-rw-r--r-- | gcc/genattr.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/gcc/genattr.c b/gcc/genattr.c index 55d6fb1..86c078f 100644 --- a/gcc/genattr.c +++ b/gcc/genattr.c @@ -163,17 +163,17 @@ write_units (num_units, multiplicity, simultaneity, printf ("extern int function_units_used PROTO((rtx));\n\n"); printf ("extern struct function_unit_desc\n"); printf ("{\n"); - printf (" char *name;\n"); + printf (" const char *name;\n"); printf (" int bitmask;\n"); printf (" int multiplicity;\n"); printf (" int simultaneity;\n"); printf (" int default_cost;\n"); printf (" int max_issue_delay;\n"); - printf (" int (*ready_cost_function) ();\n"); - printf (" int (*conflict_cost_function) ();\n"); + printf (" int (*ready_cost_function) PROTO ((rtx));\n"); + printf (" int (*conflict_cost_function) PROTO ((rtx, rtx));\n"); printf (" int max_blockage;\n"); - printf (" unsigned int (*blockage_range_function) ();\n"); - printf (" int (*blockage_function) ();\n"); + printf (" unsigned int (*blockage_range_function) PROTO ((rtx));\n"); + printf (" int (*blockage_function) PROTO ((rtx, rtx));\n"); printf ("} function_units[];\n\n"); printf ("#define FUNCTION_UNITS_SIZE %d\n", num_units); printf ("#define MIN_MULTIPLICITY %d\n", multiplicity->min); @@ -329,14 +329,14 @@ from the machine description file `md'. */\n\n"); if (XVECEXP (desc, 1, i + 1) && ! have_annul_true) { printf ("#define ANNUL_IFTRUE_SLOTS\n"); - printf ("extern int eligible_for_annul_true ();\n"); + printf ("extern int eligible_for_annul_true PROTO ((rtx, int, rtx, int));\n"); have_annul_true = 1; } if (XVECEXP (desc, 1, i + 2) && ! have_annul_false) { printf ("#define ANNUL_IFFALSE_SLOTS\n"); - printf ("extern int eligible_for_annul_false ();\n"); + printf ("extern int eligible_for_annul_false PROTO ((rtx, int, rtx, int));\n"); have_annul_false = 1; } } |