summaryrefslogtreecommitdiffstats
path: root/gcc/genoutput.c
diff options
context:
space:
mode:
authorghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>1999-08-24 13:34:04 +0000
committerghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>1999-08-24 13:34:04 +0000
commitfcf6cb17576b03d9050a88c84c97c30a10e93a51 (patch)
tree7e5beb032b12a5f206bc4a2895f87b97907ab018 /gcc/genoutput.c
parenta0d4c93cc79e62e93b67fd7afa9fb735b115d3da (diff)
downloadppe42-gcc-fcf6cb17576b03d9050a88c84c97c30a10e93a51.tar.gz
ppe42-gcc-fcf6cb17576b03d9050a88c84c97c30a10e93a51.zip
* 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/genoutput.c')
-rw-r--r--gcc/genoutput.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/gcc/genoutput.c b/gcc/genoutput.c
index d369f312b9b..91180868a9d 100644
--- a/gcc/genoutput.c
+++ b/gcc/genoutput.c
@@ -244,7 +244,7 @@ output_epilogue ()
}
printf (" };\n");
- printf ("\nconst char *(*const insn_outfun[])() =\n {\n");
+ printf ("\nconst char *(*const insn_outfun[]) PROTO((rtx *, rtx)) =\n {\n");
for (d = insn_data; d; d = d->next)
{
if (d->outfun)
@@ -398,7 +398,8 @@ output_epilogue ()
if (p == 0)
{
- printf ("extern int %s ();\n", d->predicates[i]);
+ printf ("extern int %s PROTO ((rtx, enum machine_mode));\n",
+ d->predicates[i]);
p = (struct predicate *) alloca (sizeof (struct predicate));
p->name = d->predicates[i];
p->next = predicates;
@@ -406,7 +407,7 @@ output_epilogue ()
}
}
- printf ("\nint (*const insn_operand_predicate[][MAX_RECOG_OPERANDS])() =\n {\n");
+ printf ("\nint (*const insn_operand_predicate[][MAX_RECOG_OPERANDS]) PROTO ((rtx, enum machine_mode)) =\n {\n");
for (d = insn_data; d; d = d->next)
{
printf (" {");
@@ -596,6 +597,8 @@ process_template (d, template)
d->template = 0;
d->outfun = 1;
+ printf ("\nstatic const char *output_%d PROTO ((rtx *, rtx));\n",
+ d->code_number);
printf ("\nstatic const char *\n");
printf ("output_%d (operands, insn)\n", d->code_number);
printf (" rtx *operands ATTRIBUTE_UNUSED;\n");
OpenPOWER on IntegriCloud