summaryrefslogtreecommitdiff
path: root/gcc/genemit.c
diff options
context:
space:
mode:
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>1999-08-24 13:34:04 +0000
committerKaveh Ghazi <ghazi@gcc.gnu.org>1999-08-24 13:34:04 +0000
commit69277eec7740edb7968777c8ca4f43286eab820e (patch)
tree7e5beb032b12a5f206bc4a2895f87b97907ab018 /gcc/genemit.c
parent33f58a4e96ff4e46a0f238fac2a7927eb5845f09 (diff)
downloadgcc-69277eec7740edb7968777c8ca4f43286eab820e.tar.gz
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/genemit.c')
-rw-r--r--gcc/genemit.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/genemit.c b/gcc/genemit.c
index 17f1d5db7fd..aa9bc531ae5 100644
--- a/gcc/genemit.c
+++ b/gcc/genemit.c
@@ -539,7 +539,8 @@ gen_split (split)
max_operand_vec (split, 2);
operands = MAX (max_opno, max_dup_opno) + 1;
- /* Output the function name and argument declarations. */
+ /* Output the prototype, the function name and argument declarations. */
+ printf ("extern rtx gen_split_%d PROTO ((rtx *));\n", insn_code_number);
printf ("rtx\ngen_split_%d (operands)\n rtx *operands;\n",
insn_code_number);
printf ("{\n");