diff options
author | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-08-24 13:34:04 +0000 |
---|---|---|
committer | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-08-24 13:34:04 +0000 |
commit | fcf6cb17576b03d9050a88c84c97c30a10e93a51 (patch) | |
tree | 7e5beb032b12a5f206bc4a2895f87b97907ab018 /gcc/genattr.c | |
parent | a0d4c93cc79e62e93b67fd7afa9fb735b115d3da (diff) | |
download | gcc-fcf6cb17576b03d9050a88c84c97c30a10e93a51.tar.gz |
* 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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@28822 138bc75d-0d04-0410-961f-82ee72b054a4
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 55d6fb1996d..86c078f46de 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; } } |