GNU Binutils with patches for OS216
Révision | e6c7cdec063514bb9ffe2a62fb280e5ec676cac0 (tree) |
---|---|
l'heure | 2016-04-20 20:04:49 |
Auteur | Trevor Saunders <tbsaunde+binutils@tbsa...> |
Commiter | Trevor Saunders |
update many old style function definitions
This includes regenerating a bunch of files in opcodes/ with trunk cgen.
gprof/ChangeLog:
2016-04-20 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
* basic_blocks.c: Update old style function definitions.
* cg_arcs.c: Likewise.
* cg_print.c: Likewise.
* gen-c-prog.awk: Likewise.
* gmon_io.c: Likewise.
* hertz.c: Likewise.
* hist.c: Likewise.
* sym_ids.c: Likewise.
bfd/ChangeLog:
2016-04-20 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
* cache.c: Update old style function definitions.
* elf32-m68k.c: Likewise.
* elf64-mmix.c: Likewise.
* stab-syms.c: Likewise.
opcodes/ChangeLog:
2016-04-20 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
* alpha-dis.c: Regenerate.
* crx-dis.c: Likewise.
* disassemble.c: Likewise.
* epiphany-opc.c: Likewise.
* fr30-opc.c: Likewise.
* frv-opc.c: Likewise.
* ip2k-opc.c: Likewise.
* iq2000-opc.c: Likewise.
* lm32-opc.c: Likewise.
* lm32-opinst.c: Likewise.
* m32c-opc.c: Likewise.
* m32r-opc.c: Likewise.
* m32r-opinst.c: Likewise.
* mep-opc.c: Likewise.
* mt-opc.c: Likewise.
* or1k-opc.c: Likewise.
* or1k-opinst.c: Likewise.
* tic80-opc.c: Likewise.
* xc16x-opc.c: Likewise.
* xstormy16-opc.c: Likewise.
ld/ChangeLog:
2016-04-20 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
* emultempl/scoreelf.em: Likewise.
binutils/ChangeLog:
2016-04-20 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
* resres.c: Likewise.
gas/ChangeLog:
2016-04-20 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
* cgen.c: Likewise.
* config/tc-bfin.c: Likewise.
* config/tc-ia64.c: Likewise.
* config/tc-mep.c: Likewise.
* config/tc-metag.c: Likewise.
* config/tc-nios2.c: Likewise.
* config/tc-rl78.c: Likewise.
@@ -1,5 +1,12 @@ | ||
1 | 1 | 2016-04-20 Trevor Saunders <tbsaunde+binutils@tbsaunde.org> |
2 | 2 | |
3 | + * cache.c: Update old style function definitions. | |
4 | + * elf32-m68k.c: Likewise. | |
5 | + * elf64-mmix.c: Likewise. | |
6 | + * stab-syms.c: Likewise. | |
7 | + | |
8 | +2016-04-20 Trevor Saunders <tbsaunde+binutils@tbsaunde.org> | |
9 | + | |
3 | 10 | * elf32-arm.c (put_thumb2_insn): Change argument type to bfd_byte *. |
4 | 11 | |
5 | 12 | 2016-04-15 H.J. Lu <hongjiu.lu@intel.com> |
@@ -566,7 +566,7 @@ RETURNS | ||
566 | 566 | */ |
567 | 567 | |
568 | 568 | bfd_boolean |
569 | -bfd_cache_close_all () | |
569 | +bfd_cache_close_all (void) | |
570 | 570 | { |
571 | 571 | bfd_boolean ret = TRUE; |
572 | 572 |
@@ -4579,12 +4579,9 @@ elf_m68k_finish_dynamic_sections (bfd *output_bfd, struct bfd_link_info *info) | ||
4579 | 4579 | objects, and before the final_link entry point is called. */ |
4580 | 4580 | |
4581 | 4581 | bfd_boolean |
4582 | -bfd_m68k_elf32_create_embedded_relocs (abfd, info, datasec, relsec, errmsg) | |
4583 | - bfd *abfd; | |
4584 | - struct bfd_link_info *info; | |
4585 | - asection *datasec; | |
4586 | - asection *relsec; | |
4587 | - char **errmsg; | |
4582 | +bfd_m68k_elf32_create_embedded_relocs (bfd *abfd, struct bfd_link_info *info, | |
4583 | + asection *datasec, asection *relsec, | |
4584 | + char **errmsg) | |
4588 | 4585 | { |
4589 | 4586 | Elf_Internal_Shdr *symtab_hdr; |
4590 | 4587 | Elf_Internal_Sym *isymbuf = NULL; |
@@ -2114,9 +2114,7 @@ static asymbol *mmix_elf_reg_section_symbol_ptr; | ||
2114 | 2114 | /* Handle the special section numbers that a symbol may use. */ |
2115 | 2115 | |
2116 | 2116 | void |
2117 | -mmix_elf_symbol_processing (abfd, asym) | |
2118 | - bfd *abfd ATTRIBUTE_UNUSED; | |
2119 | - asymbol *asym; | |
2117 | +mmix_elf_symbol_processing (bfd *abfd ATTRIBUTE_UNUSED, asymbol *asym) | |
2120 | 2118 | { |
2121 | 2119 | elf_symbol_type *elfsym; |
2122 | 2120 |
@@ -2491,9 +2489,8 @@ bpo_reloc_request_sort_fn (const void * p1, const void * p2) | ||
2491 | 2489 | from base-plus-offset relocs. */ |
2492 | 2490 | |
2493 | 2491 | void |
2494 | -mmix_dump_bpo_gregs (link_info, pf) | |
2495 | - struct bfd_link_info *link_info; | |
2496 | - bfd_error_handler_type pf; | |
2492 | +mmix_dump_bpo_gregs (struct bfd_link_info *link_info, | |
2493 | + bfd_error_handler_type pf) | |
2497 | 2494 | { |
2498 | 2495 | bfd *bpo_greg_owner; |
2499 | 2496 | asection *bpo_gregs_section; |
@@ -45,8 +45,7 @@ | ||
45 | 45 | __define_name (N_WARNING, "WARNING") |
46 | 46 | |
47 | 47 | const char * |
48 | -bfd_get_stab_name (code) | |
49 | - int code; | |
48 | +bfd_get_stab_name (int code) | |
50 | 49 | { |
51 | 50 | switch (code) |
52 | 51 | { |
@@ -1,3 +1,7 @@ | ||
1 | +2016-04-20 Trevor Saunders <tbsaunde+binutils@tbsaunde.org> | |
2 | + | |
3 | + * resres.c: Likewise. | |
4 | + | |
1 | 5 | 2016-04-15 H.J. Lu <hongjiu.lu@intel.com> |
2 | 6 | |
3 | 7 | * Makefile.in: Regenerated with automake 1.11.6. |
@@ -386,8 +386,7 @@ write_res_bin (windres_bfd *wrbfd, rc_uint_type off, const rc_res_resource *res, | ||
386 | 386 | |
387 | 387 | /* Get number of bytes needed to store an id in binary format */ |
388 | 388 | static unsigned long |
389 | -get_id_size (id) | |
390 | - const rc_res_id *id; | |
389 | +get_id_size (const rc_res_id *id) | |
391 | 390 | { |
392 | 391 | if (id->named) |
393 | 392 | return sizeof (unichar) * (id->u.n.length + 1); |
@@ -1,3 +1,13 @@ | ||
1 | +2016-04-20 Trevor Saunders <tbsaunde+binutils@tbsaunde.org> | |
2 | + | |
3 | + * cgen.c: Likewise. | |
4 | + * config/tc-bfin.c: Likewise. | |
5 | + * config/tc-ia64.c: Likewise. | |
6 | + * config/tc-mep.c: Likewise. | |
7 | + * config/tc-metag.c: Likewise. | |
8 | + * config/tc-nios2.c: Likewise. | |
9 | + * config/tc-rl78.c: Likewise. | |
10 | + | |
1 | 11 | 2016-04-20 Andrew Burgess <andrew.burgess@embecosm.com> |
2 | 12 | |
3 | 13 | * doc/c-arc.texi (ARC Options): Add nps400 to list of valus for |
@@ -92,7 +92,7 @@ static int num_fixups; | ||
92 | 92 | ??? May wish to make this static and delete calls in md_assemble. */ |
93 | 93 | |
94 | 94 | void |
95 | -gas_cgen_init_parse () | |
95 | +gas_cgen_init_parse (void) | |
96 | 96 | { |
97 | 97 | num_fixups = 0; |
98 | 98 | } |
@@ -154,7 +154,7 @@ struct saved_fixups | ||
154 | 154 | static struct saved_fixups stored_fixups[MAX_SAVED_FIXUP_CHAINS]; |
155 | 155 | |
156 | 156 | void |
157 | -gas_cgen_initialize_saved_fixups_array () | |
157 | +gas_cgen_initialize_saved_fixups_array (void) | |
158 | 158 | { |
159 | 159 | int i = 0; |
160 | 160 |
@@ -1047,7 +1047,7 @@ gas_cgen_tc_gen_reloc (asection *section ATTRIBUTE_UNUSED, fixS *fixP) | ||
1047 | 1047 | Called after gas_cgen_cpu_desc has been created. */ |
1048 | 1048 | |
1049 | 1049 | void |
1050 | -gas_cgen_begin () | |
1050 | +gas_cgen_begin (void) | |
1051 | 1051 | { |
1052 | 1052 | if (flag_signed_overflow_ok) |
1053 | 1053 | cgen_set_signed_overflow_ok (gas_cgen_cpu_desc); |
@@ -446,7 +446,7 @@ md_show_usage (FILE * stream) | ||
446 | 446 | |
447 | 447 | /* Perform machine-specific initializations. */ |
448 | 448 | void |
449 | -md_begin () | |
449 | +md_begin (void) | |
450 | 450 | { |
451 | 451 | /* Set the ELF flags if desired. */ |
452 | 452 | if (bfin_flags) |
@@ -4120,7 +4120,7 @@ save_prologue_count (unsigned long lbl, unsigned int count) | ||
4120 | 4120 | } |
4121 | 4121 | |
4122 | 4122 | static void |
4123 | -free_saved_prologue_counts () | |
4123 | +free_saved_prologue_counts (void) | |
4124 | 4124 | { |
4125 | 4125 | label_prologue_count *lpc = unwind.saved_prologue_counts; |
4126 | 4126 | label_prologue_count *next; |
@@ -465,7 +465,7 @@ mep_parse_operand (CGEN_CPU_DESC cd, enum cgen_parse_operand_type want, | ||
465 | 465 | } |
466 | 466 | |
467 | 467 | void |
468 | -md_begin () | |
468 | +md_begin (void) | |
469 | 469 | { |
470 | 470 | /* Initialize the `cgen' interface. */ |
471 | 471 |
@@ -1934,7 +1934,7 @@ mep_cgen_record_fixup_exp (fragS *frag, | ||
1934 | 1934 | tc_gen_reloc. */ |
1935 | 1935 | |
1936 | 1936 | void |
1937 | -mep_frob_file () | |
1937 | +mep_frob_file (void) | |
1938 | 1938 | { |
1939 | 1939 | struct mep_hi_fixup * l; |
1940 | 1940 |
@@ -7002,9 +7002,7 @@ metag_parse_name (char const * name, expressionS * exprP, enum expr_mode mode, | ||
7002 | 7002 | then it is done here. */ |
7003 | 7003 | |
7004 | 7004 | arelent * |
7005 | -tc_gen_reloc (seg, fixp) | |
7006 | - asection *seg ATTRIBUTE_UNUSED; | |
7007 | - fixS *fixp; | |
7005 | +tc_gen_reloc (asection *seg ATTRIBUTE_UNUSED, fixS *fixp) | |
7008 | 7006 | { |
7009 | 7007 | arelent *reloc; |
7010 | 7008 |
@@ -3910,7 +3910,7 @@ md_pcrel_from (fixS *fixP ATTRIBUTE_UNUSED) | ||
3910 | 3910 | |
3911 | 3911 | /* Called just before the assembler exits. */ |
3912 | 3912 | void |
3913 | -md_end () | |
3913 | +md_end (void) | |
3914 | 3914 | { |
3915 | 3915 | /* FIXME - not yet implemented */ |
3916 | 3916 | } |
@@ -131,7 +131,7 @@ rl78_prefix (int p) | ||
131 | 131 | } |
132 | 132 | |
133 | 133 | int |
134 | -rl78_has_prefix () | |
134 | +rl78_has_prefix (void) | |
135 | 135 | { |
136 | 136 | return rl78_bytes.n_prefix; |
137 | 137 | } |
@@ -1,3 +1,14 @@ | ||
1 | +2016-04-20 Trevor Saunders <tbsaunde+binutils@tbsaunde.org> | |
2 | + | |
3 | + * basic_blocks.c: Update old style function definitions. | |
4 | + * cg_arcs.c: Likewise. | |
5 | + * cg_print.c: Likewise. | |
6 | + * gen-c-prog.awk: Likewise. | |
7 | + * gmon_io.c: Likewise. | |
8 | + * hertz.c: Likewise. | |
9 | + * hist.c: Likewise. | |
10 | + * sym_ids.c: Likewise. | |
11 | + | |
1 | 12 | 2016-04-15 H.J. Lu <hongjiu.lu@intel.com> |
2 | 13 | |
3 | 14 | * Makefile.in: Regenerated with automake 1.11.6. |
@@ -248,7 +248,7 @@ bb_write_blocks (FILE *ofp, const char *filename) | ||
248 | 248 | <filename>:<line-number>: (<function-name>:<bb-addr): <ncalls> */ |
249 | 249 | |
250 | 250 | void |
251 | -print_exec_counts () | |
251 | +print_exec_counts (void) | |
252 | 252 | { |
253 | 253 | Sym **sorted_bbs, *sym; |
254 | 254 | unsigned int i, j, len; |
@@ -459,7 +459,7 @@ annotate_with_count (char *buf, unsigned int width, int line_num, PTR arg) | ||
459 | 459 | regarding that source file are printed. */ |
460 | 460 | |
461 | 461 | void |
462 | -print_annotated_source () | |
462 | +print_annotated_source (void) | |
463 | 463 | { |
464 | 464 | Sym *sym, *line_stats, *new_line; |
465 | 465 | Source_File *sf; |
@@ -245,7 +245,7 @@ propagate_time (Sym *parent) | ||
245 | 245 | * its members. |
246 | 246 | */ |
247 | 247 | static void |
248 | -cycle_time () | |
248 | +cycle_time (void) | |
249 | 249 | { |
250 | 250 | Sym *member, *cyc; |
251 | 251 |
@@ -269,7 +269,7 @@ cycle_time () | ||
269 | 269 | |
270 | 270 | |
271 | 271 | static void |
272 | -cycle_link () | |
272 | +cycle_link (void) | |
273 | 273 | { |
274 | 274 | Sym *sym, *cyc, *member; |
275 | 275 | Arc *arc; |
@@ -61,7 +61,7 @@ double print_time = 0.0; | ||
61 | 61 | |
62 | 62 | |
63 | 63 | static void |
64 | -print_header () | |
64 | +print_header (void) | |
65 | 65 | { |
66 | 66 | if (first_output) |
67 | 67 | first_output = FALSE; |
@@ -561,7 +561,7 @@ cmp_name (const PTR left, const PTR right) | ||
561 | 561 | |
562 | 562 | |
563 | 563 | void |
564 | -cg_print_index () | |
564 | +cg_print_index (void) | |
565 | 565 | { |
566 | 566 | unsigned int sym_index; |
567 | 567 | unsigned int nnames, todo, i, j; |
@@ -984,13 +984,9 @@ cg_print_function_ordering (void) | ||
984 | 984 | |
985 | 985 | #define MOST 0.99 |
986 | 986 | static void |
987 | -order_and_dump_functions_by_arcs (the_arcs, arc_count, all, | |
988 | - unplaced_arcs, unplaced_arc_count) | |
989 | - Arc **the_arcs; | |
990 | - unsigned long arc_count; | |
991 | - int all; | |
992 | - Arc **unplaced_arcs; | |
993 | - unsigned long *unplaced_arc_count; | |
987 | +order_and_dump_functions_by_arcs (Arc **the_arcs, unsigned long arc_count, | |
988 | + int all, Arc **unplaced_arcs, | |
989 | + unsigned long *unplaced_arc_count) | |
994 | 990 | { |
995 | 991 | #ifdef __GNUC__ |
996 | 992 | unsigned long long tmp_arcs, total_arcs; |
@@ -15,8 +15,7 @@ NR == 1 { | ||
15 | 15 | print "" |
16 | 16 | print "void ", FUNCTION, "(FILE *);" |
17 | 17 | print "void"; |
18 | - printf "%s (file)\n", FUNCTION | |
19 | - print " FILE *file;"; | |
18 | + printf "%s (FILE *file)\n", FUNCTION | |
20 | 19 | print "{"; |
21 | 20 | } |
22 | 21 | printf " fputs (\""; |
@@ -61,7 +61,7 @@ int gmon_input = 0; | ||
61 | 61 | int gmon_file_version = 0; /* 0 == old (non-versioned) file format. */ |
62 | 62 | |
63 | 63 | static enum gmon_ptr_size |
64 | -gmon_get_ptr_size () | |
64 | +gmon_get_ptr_size (void) | |
65 | 65 | { |
66 | 66 | int size; |
67 | 67 |
@@ -87,7 +87,7 @@ gmon_get_ptr_size () | ||
87 | 87 | } |
88 | 88 | |
89 | 89 | static enum gmon_ptr_signedness |
90 | -gmon_get_ptr_signedness () | |
90 | +gmon_get_ptr_signedness (void) | |
91 | 91 | { |
92 | 92 | int sext; |
93 | 93 |
@@ -31,7 +31,7 @@ | ||
31 | 31 | |
32 | 32 | |
33 | 33 | int |
34 | -hertz () | |
34 | +hertz (void) | |
35 | 35 | { |
36 | 36 | #ifdef HERTZ |
37 | 37 | return HERTZ; |
@@ -289,7 +289,7 @@ hist_write_hist (FILE * ofp, const char *filename) | ||
289 | 289 | next bin. */ |
290 | 290 | |
291 | 291 | static void |
292 | -scale_and_align_entries () | |
292 | +scale_and_align_entries (void) | |
293 | 293 | { |
294 | 294 | Sym *sym; |
295 | 295 | bfd_vma bin_of_entry; |
@@ -445,7 +445,7 @@ hist_assign_samples_1 (histogram *r) | ||
445 | 445 | |
446 | 446 | /* Calls 'hist_assign_sampes_1' for all histogram records read so far. */ |
447 | 447 | void |
448 | -hist_assign_samples () | |
448 | +hist_assign_samples (void) | |
449 | 449 | { |
450 | 450 | unsigned i; |
451 | 451 |
@@ -562,7 +562,7 @@ cmp_time (const PTR lp, const PTR rp) | ||
562 | 562 | /* Print the flat histogram profile. */ |
563 | 563 | |
564 | 564 | void |
565 | -hist_print () | |
565 | +hist_print (void) | |
566 | 566 | { |
567 | 567 | Sym **time_sorted_syms, *top_dog, *sym; |
568 | 568 | unsigned int sym_index; |
@@ -273,7 +273,7 @@ extend_match (struct match *m, Sym *sym, Sym_Table *tab, bfd_boolean second_pass | ||
273 | 273 | requests---you get what you ask for! */ |
274 | 274 | |
275 | 275 | void |
276 | -sym_id_parse () | |
276 | +sym_id_parse (void) | |
277 | 277 | { |
278 | 278 | Sym *sym, *left, *right; |
279 | 279 | struct sym_id *id; |
@@ -1,3 +1,7 @@ | ||
1 | +2016-04-20 Trevor Saunders <tbsaunde+binutils@tbsaunde.org> | |
2 | + | |
3 | + * emultempl/scoreelf.em: Likewise. | |
4 | + | |
1 | 5 | 2016-04-19 H.J. Lu <hongjiu.lu@intel.com> |
2 | 6 | |
3 | 7 | PR ld/19719 |
@@ -31,7 +31,7 @@ fragment <<EOF | ||
31 | 31 | #include "elf32-score.h" |
32 | 32 | |
33 | 33 | static void |
34 | -gld${EMULATION_NAME}_before_parse () | |
34 | +gld${EMULATION_NAME}_before_parse (void) | |
35 | 35 | { |
36 | 36 | #ifndef TARGET_ /* I.e., if not generic. */ |
37 | 37 | ldfile_set_output_arch ("`echo ${ARCH}`", bfd_arch_unknown); |
@@ -1,3 +1,26 @@ | ||
1 | +2016-04-20 Trevor Saunders <tbsaunde+binutils@tbsaunde.org> | |
2 | + | |
3 | + * alpha-dis.c: Regenerate. | |
4 | + * crx-dis.c: Likewise. | |
5 | + * disassemble.c: Likewise. | |
6 | + * epiphany-opc.c: Likewise. | |
7 | + * fr30-opc.c: Likewise. | |
8 | + * frv-opc.c: Likewise. | |
9 | + * ip2k-opc.c: Likewise. | |
10 | + * iq2000-opc.c: Likewise. | |
11 | + * lm32-opc.c: Likewise. | |
12 | + * lm32-opinst.c: Likewise. | |
13 | + * m32c-opc.c: Likewise. | |
14 | + * m32r-opc.c: Likewise. | |
15 | + * m32r-opinst.c: Likewise. | |
16 | + * mep-opc.c: Likewise. | |
17 | + * mt-opc.c: Likewise. | |
18 | + * or1k-opc.c: Likewise. | |
19 | + * or1k-opinst.c: Likewise. | |
20 | + * tic80-opc.c: Likewise. | |
21 | + * xc16x-opc.c: Likewise. | |
22 | + * xstormy16-opc.c: Likewise. | |
23 | + | |
1 | 24 | 2016-04-19 Andrew Burgess <andrew.burgess@embecosm.com> |
2 | 25 | |
3 | 26 | * arc-nps400-tbl.h: Add addb, subb, adcb, sbcb, andb, xorb, orb, |
@@ -54,9 +54,7 @@ static const char * const vms_regnames[64] = { | ||
54 | 54 | /* Disassemble Alpha instructions. */ |
55 | 55 | |
56 | 56 | int |
57 | -print_insn_alpha (memaddr, info) | |
58 | - bfd_vma memaddr; | |
59 | - struct disassemble_info *info; | |
57 | +print_insn_alpha (bfd_vma memaddr, struct disassemble_info *info) | |
60 | 58 | { |
61 | 59 | static const struct alpha_opcode *opcode_index[AXP_NOPS+1]; |
62 | 60 | const char * const * regnames; |
@@ -714,9 +714,7 @@ get_words_at_PC (bfd_vma memaddr, struct disassemble_info *info) | ||
714 | 714 | /* Prints the instruction by calling print_arguments after proper matching. */ |
715 | 715 | |
716 | 716 | int |
717 | -print_insn_crx (memaddr, info) | |
718 | - bfd_vma memaddr; | |
719 | - struct disassemble_info *info; | |
717 | +print_insn_crx (bfd_vma memaddr, struct disassemble_info *info) | |
720 | 718 | { |
721 | 719 | int is_decoded; /* Nonzero means instruction has a match. */ |
722 | 720 |
@@ -106,8 +106,7 @@ | ||
106 | 106 | #endif |
107 | 107 | |
108 | 108 | disassembler_ftype |
109 | -disassembler (abfd) | |
110 | - bfd *abfd; | |
109 | +disassembler (bfd *abfd) | |
111 | 110 | { |
112 | 111 | enum bfd_architecture a = bfd_get_arch (abfd); |
113 | 112 | disassembler_ftype disassemble; |
@@ -543,8 +542,7 @@ disassembler (abfd) | ||
543 | 542 | } |
544 | 543 | |
545 | 544 | void |
546 | -disassembler_usage (stream) | |
547 | - FILE * stream ATTRIBUTE_UNUSED; | |
545 | +disassembler_usage (FILE *stream ATTRIBUTE_UNUSED) | |
548 | 546 | { |
549 | 547 | #ifdef ARCH_aarch64 |
550 | 548 | print_aarch64_disassembler_options (stream); |
@@ -3922,15 +3922,13 @@ static const CGEN_OPCODE epiphany_cgen_macro_insn_opcode_table[] = | ||
3922 | 3922 | Targets are free to override CGEN_{ASM,DIS}_HASH_P in the .opc file. */ |
3923 | 3923 | |
3924 | 3924 | static int |
3925 | -asm_hash_insn_p (insn) | |
3926 | - const CGEN_INSN *insn ATTRIBUTE_UNUSED; | |
3925 | +asm_hash_insn_p (const CGEN_INSN *insn ATTRIBUTE_UNUSED) | |
3927 | 3926 | { |
3928 | 3927 | return CGEN_ASM_HASH_P (insn); |
3929 | 3928 | } |
3930 | 3929 | |
3931 | 3930 | static int |
3932 | -dis_hash_insn_p (insn) | |
3933 | - const CGEN_INSN *insn; | |
3931 | +dis_hash_insn_p (const CGEN_INSN *insn) | |
3934 | 3932 | { |
3935 | 3933 | /* If building the hash table and the NO-DIS attribute is present, |
3936 | 3934 | ignore. */ |
@@ -3962,8 +3960,7 @@ dis_hash_insn_p (insn) | ||
3962 | 3960 | Targets are free to override CGEN_{ASM,DIS}_HASH in the .opc file. */ |
3963 | 3961 | |
3964 | 3962 | static unsigned int |
3965 | -asm_hash_insn (mnem) | |
3966 | - const char * mnem; | |
3963 | +asm_hash_insn (const char *mnem) | |
3967 | 3964 | { |
3968 | 3965 | return CGEN_ASM_HASH (mnem); |
3969 | 3966 | } |
@@ -3972,9 +3969,8 @@ asm_hash_insn (mnem) | ||
3972 | 3969 | VALUE is the first base_insn_bitsize bits as an int in host order. */ |
3973 | 3970 | |
3974 | 3971 | static unsigned int |
3975 | -dis_hash_insn (buf, value) | |
3976 | - const char * buf ATTRIBUTE_UNUSED; | |
3977 | - CGEN_INSN_INT value ATTRIBUTE_UNUSED; | |
3972 | +dis_hash_insn (const char *buf ATTRIBUTE_UNUSED, | |
3973 | + CGEN_INSN_INT value ATTRIBUTE_UNUSED) | |
3978 | 3974 | { |
3979 | 3975 | return CGEN_DIS_HASH (buf, value); |
3980 | 3976 | } |
@@ -1259,15 +1259,13 @@ static const CGEN_OPCODE fr30_cgen_macro_insn_opcode_table[] = | ||
1259 | 1259 | Targets are free to override CGEN_{ASM,DIS}_HASH_P in the .opc file. */ |
1260 | 1260 | |
1261 | 1261 | static int |
1262 | -asm_hash_insn_p (insn) | |
1263 | - const CGEN_INSN *insn ATTRIBUTE_UNUSED; | |
1262 | +asm_hash_insn_p (const CGEN_INSN *insn ATTRIBUTE_UNUSED) | |
1264 | 1263 | { |
1265 | 1264 | return CGEN_ASM_HASH_P (insn); |
1266 | 1265 | } |
1267 | 1266 | |
1268 | 1267 | static int |
1269 | -dis_hash_insn_p (insn) | |
1270 | - const CGEN_INSN *insn; | |
1268 | +dis_hash_insn_p (const CGEN_INSN *insn) | |
1271 | 1269 | { |
1272 | 1270 | /* If building the hash table and the NO-DIS attribute is present, |
1273 | 1271 | ignore. */ |
@@ -1299,8 +1297,7 @@ dis_hash_insn_p (insn) | ||
1299 | 1297 | Targets are free to override CGEN_{ASM,DIS}_HASH in the .opc file. */ |
1300 | 1298 | |
1301 | 1299 | static unsigned int |
1302 | -asm_hash_insn (mnem) | |
1303 | - const char * mnem; | |
1300 | +asm_hash_insn (const char *mnem) | |
1304 | 1301 | { |
1305 | 1302 | return CGEN_ASM_HASH (mnem); |
1306 | 1303 | } |
@@ -1309,9 +1306,8 @@ asm_hash_insn (mnem) | ||
1309 | 1306 | VALUE is the first base_insn_bitsize bits as an int in host order. */ |
1310 | 1307 | |
1311 | 1308 | static unsigned int |
1312 | -dis_hash_insn (buf, value) | |
1313 | - const char * buf ATTRIBUTE_UNUSED; | |
1314 | - CGEN_INSN_INT value ATTRIBUTE_UNUSED; | |
1309 | +dis_hash_insn (const char *buf ATTRIBUTE_UNUSED, | |
1310 | + CGEN_INSN_INT value ATTRIBUTE_UNUSED) | |
1315 | 1311 | { |
1316 | 1312 | return CGEN_DIS_HASH (buf, value); |
1317 | 1313 | } |
@@ -6124,15 +6124,13 @@ static const CGEN_OPCODE frv_cgen_macro_insn_opcode_table[] = | ||
6124 | 6124 | Targets are free to override CGEN_{ASM,DIS}_HASH_P in the .opc file. */ |
6125 | 6125 | |
6126 | 6126 | static int |
6127 | -asm_hash_insn_p (insn) | |
6128 | - const CGEN_INSN *insn ATTRIBUTE_UNUSED; | |
6127 | +asm_hash_insn_p (const CGEN_INSN *insn ATTRIBUTE_UNUSED) | |
6129 | 6128 | { |
6130 | 6129 | return CGEN_ASM_HASH_P (insn); |
6131 | 6130 | } |
6132 | 6131 | |
6133 | 6132 | static int |
6134 | -dis_hash_insn_p (insn) | |
6135 | - const CGEN_INSN *insn; | |
6133 | +dis_hash_insn_p (const CGEN_INSN *insn) | |
6136 | 6134 | { |
6137 | 6135 | /* If building the hash table and the NO-DIS attribute is present, |
6138 | 6136 | ignore. */ |
@@ -6164,8 +6162,7 @@ dis_hash_insn_p (insn) | ||
6164 | 6162 | Targets are free to override CGEN_{ASM,DIS}_HASH in the .opc file. */ |
6165 | 6163 | |
6166 | 6164 | static unsigned int |
6167 | -asm_hash_insn (mnem) | |
6168 | - const char * mnem; | |
6165 | +asm_hash_insn (const char *mnem) | |
6169 | 6166 | { |
6170 | 6167 | return CGEN_ASM_HASH (mnem); |
6171 | 6168 | } |
@@ -6174,9 +6171,8 @@ asm_hash_insn (mnem) | ||
6174 | 6171 | VALUE is the first base_insn_bitsize bits as an int in host order. */ |
6175 | 6172 | |
6176 | 6173 | static unsigned int |
6177 | -dis_hash_insn (buf, value) | |
6178 | - const char * buf ATTRIBUTE_UNUSED; | |
6179 | - CGEN_INSN_INT value ATTRIBUTE_UNUSED; | |
6174 | +dis_hash_insn (const char *buf ATTRIBUTE_UNUSED, | |
6175 | + CGEN_INSN_INT value ATTRIBUTE_UNUSED) | |
6180 | 6176 | { |
6181 | 6177 | return CGEN_DIS_HASH (buf, value); |
6182 | 6178 | } |
@@ -790,15 +790,13 @@ static const CGEN_OPCODE ip2k_cgen_macro_insn_opcode_table[] = | ||
790 | 790 | Targets are free to override CGEN_{ASM,DIS}_HASH_P in the .opc file. */ |
791 | 791 | |
792 | 792 | static int |
793 | -asm_hash_insn_p (insn) | |
794 | - const CGEN_INSN *insn ATTRIBUTE_UNUSED; | |
793 | +asm_hash_insn_p (const CGEN_INSN *insn ATTRIBUTE_UNUSED) | |
795 | 794 | { |
796 | 795 | return CGEN_ASM_HASH_P (insn); |
797 | 796 | } |
798 | 797 | |
799 | 798 | static int |
800 | -dis_hash_insn_p (insn) | |
801 | - const CGEN_INSN *insn; | |
799 | +dis_hash_insn_p (const CGEN_INSN *insn) | |
802 | 800 | { |
803 | 801 | /* If building the hash table and the NO-DIS attribute is present, |
804 | 802 | ignore. */ |
@@ -830,8 +828,7 @@ dis_hash_insn_p (insn) | ||
830 | 828 | Targets are free to override CGEN_{ASM,DIS}_HASH in the .opc file. */ |
831 | 829 | |
832 | 830 | static unsigned int |
833 | -asm_hash_insn (mnem) | |
834 | - const char * mnem; | |
831 | +asm_hash_insn (const char *mnem) | |
835 | 832 | { |
836 | 833 | return CGEN_ASM_HASH (mnem); |
837 | 834 | } |
@@ -840,9 +837,8 @@ asm_hash_insn (mnem) | ||
840 | 837 | VALUE is the first base_insn_bitsize bits as an int in host order. */ |
841 | 838 | |
842 | 839 | static unsigned int |
843 | -dis_hash_insn (buf, value) | |
844 | - const char * buf ATTRIBUTE_UNUSED; | |
845 | - CGEN_INSN_INT value ATTRIBUTE_UNUSED; | |
840 | +dis_hash_insn (const char *buf ATTRIBUTE_UNUSED, | |
841 | + CGEN_INSN_INT value ATTRIBUTE_UNUSED) | |
846 | 842 | { |
847 | 843 | return CGEN_DIS_HASH (buf, value); |
848 | 844 | } |
@@ -3344,15 +3344,13 @@ static const CGEN_OPCODE iq2000_cgen_macro_insn_opcode_table[] = | ||
3344 | 3344 | Targets are free to override CGEN_{ASM,DIS}_HASH_P in the .opc file. */ |
3345 | 3345 | |
3346 | 3346 | static int |
3347 | -asm_hash_insn_p (insn) | |
3348 | - const CGEN_INSN *insn ATTRIBUTE_UNUSED; | |
3347 | +asm_hash_insn_p (const CGEN_INSN *insn ATTRIBUTE_UNUSED) | |
3349 | 3348 | { |
3350 | 3349 | return CGEN_ASM_HASH_P (insn); |
3351 | 3350 | } |
3352 | 3351 | |
3353 | 3352 | static int |
3354 | -dis_hash_insn_p (insn) | |
3355 | - const CGEN_INSN *insn; | |
3353 | +dis_hash_insn_p (const CGEN_INSN *insn) | |
3356 | 3354 | { |
3357 | 3355 | /* If building the hash table and the NO-DIS attribute is present, |
3358 | 3356 | ignore. */ |
@@ -3384,8 +3382,7 @@ dis_hash_insn_p (insn) | ||
3384 | 3382 | Targets are free to override CGEN_{ASM,DIS}_HASH in the .opc file. */ |
3385 | 3383 | |
3386 | 3384 | static unsigned int |
3387 | -asm_hash_insn (mnem) | |
3388 | - const char * mnem; | |
3385 | +asm_hash_insn (const char *mnem) | |
3389 | 3386 | { |
3390 | 3387 | return CGEN_ASM_HASH (mnem); |
3391 | 3388 | } |
@@ -3394,9 +3391,8 @@ asm_hash_insn (mnem) | ||
3394 | 3391 | VALUE is the first base_insn_bitsize bits as an int in host order. */ |
3395 | 3392 | |
3396 | 3393 | static unsigned int |
3397 | -dis_hash_insn (buf, value) | |
3398 | - const char * buf ATTRIBUTE_UNUSED; | |
3399 | - CGEN_INSN_INT value ATTRIBUTE_UNUSED; | |
3394 | +dis_hash_insn (const char *buf ATTRIBUTE_UNUSED, | |
3395 | + CGEN_INSN_INT value ATTRIBUTE_UNUSED) | |
3400 | 3396 | { |
3401 | 3397 | return CGEN_DIS_HASH (buf, value); |
3402 | 3398 | } |
@@ -742,15 +742,13 @@ static const CGEN_OPCODE lm32_cgen_macro_insn_opcode_table[] = | ||
742 | 742 | Targets are free to override CGEN_{ASM,DIS}_HASH_P in the .opc file. */ |
743 | 743 | |
744 | 744 | static int |
745 | -asm_hash_insn_p (insn) | |
746 | - const CGEN_INSN *insn ATTRIBUTE_UNUSED; | |
745 | +asm_hash_insn_p (const CGEN_INSN *insn ATTRIBUTE_UNUSED) | |
747 | 746 | { |
748 | 747 | return CGEN_ASM_HASH_P (insn); |
749 | 748 | } |
750 | 749 | |
751 | 750 | static int |
752 | -dis_hash_insn_p (insn) | |
753 | - const CGEN_INSN *insn; | |
751 | +dis_hash_insn_p (const CGEN_INSN *insn) | |
754 | 752 | { |
755 | 753 | /* If building the hash table and the NO-DIS attribute is present, |
756 | 754 | ignore. */ |
@@ -782,8 +780,7 @@ dis_hash_insn_p (insn) | ||
782 | 780 | Targets are free to override CGEN_{ASM,DIS}_HASH in the .opc file. */ |
783 | 781 | |
784 | 782 | static unsigned int |
785 | -asm_hash_insn (mnem) | |
786 | - const char * mnem; | |
783 | +asm_hash_insn (const char *mnem) | |
787 | 784 | { |
788 | 785 | return CGEN_ASM_HASH (mnem); |
789 | 786 | } |
@@ -792,9 +789,8 @@ asm_hash_insn (mnem) | ||
792 | 789 | VALUE is the first base_insn_bitsize bits as an int in host order. */ |
793 | 790 | |
794 | 791 | static unsigned int |
795 | -dis_hash_insn (buf, value) | |
796 | - const char * buf ATTRIBUTE_UNUSED; | |
797 | - CGEN_INSN_INT value ATTRIBUTE_UNUSED; | |
792 | +dis_hash_insn (const char *buf ATTRIBUTE_UNUSED, | |
793 | + CGEN_INSN_INT value ATTRIBUTE_UNUSED) | |
798 | 794 | { |
799 | 795 | return CGEN_DIS_HASH (buf, value); |
800 | 796 | } |
@@ -465,8 +465,7 @@ static const CGEN_OPINST *lm32_cgen_opinst_table[MAX_INSNS] = { | ||
465 | 465 | /* Function to call before using the operand instance table. */ |
466 | 466 | |
467 | 467 | void |
468 | -lm32_cgen_init_opinst_table (cd) | |
469 | - CGEN_CPU_DESC cd; | |
468 | +lm32_cgen_init_opinst_table (CGEN_CPU_DESC cd) | |
470 | 469 | { |
471 | 470 | int i; |
472 | 471 | const CGEN_OPINST **oi = & lm32_cgen_opinst_table[0]; |
@@ -80111,15 +80111,13 @@ static const CGEN_OPCODE m32c_cgen_macro_insn_opcode_table[] = | ||
80111 | 80111 | Targets are free to override CGEN_{ASM,DIS}_HASH_P in the .opc file. */ |
80112 | 80112 | |
80113 | 80113 | static int |
80114 | -asm_hash_insn_p (insn) | |
80115 | - const CGEN_INSN *insn ATTRIBUTE_UNUSED; | |
80114 | +asm_hash_insn_p (const CGEN_INSN *insn ATTRIBUTE_UNUSED) | |
80116 | 80115 | { |
80117 | 80116 | return CGEN_ASM_HASH_P (insn); |
80118 | 80117 | } |
80119 | 80118 | |
80120 | 80119 | static int |
80121 | -dis_hash_insn_p (insn) | |
80122 | - const CGEN_INSN *insn; | |
80120 | +dis_hash_insn_p (const CGEN_INSN *insn) | |
80123 | 80121 | { |
80124 | 80122 | /* If building the hash table and the NO-DIS attribute is present, |
80125 | 80123 | ignore. */ |
@@ -80151,8 +80149,7 @@ dis_hash_insn_p (insn) | ||
80151 | 80149 | Targets are free to override CGEN_{ASM,DIS}_HASH in the .opc file. */ |
80152 | 80150 | |
80153 | 80151 | static unsigned int |
80154 | -asm_hash_insn (mnem) | |
80155 | - const char * mnem; | |
80152 | +asm_hash_insn (const char *mnem) | |
80156 | 80153 | { |
80157 | 80154 | return CGEN_ASM_HASH (mnem); |
80158 | 80155 | } |
@@ -80161,9 +80158,8 @@ asm_hash_insn (mnem) | ||
80161 | 80158 | VALUE is the first base_insn_bitsize bits as an int in host order. */ |
80162 | 80159 | |
80163 | 80160 | static unsigned int |
80164 | -dis_hash_insn (buf, value) | |
80165 | - const char * buf ATTRIBUTE_UNUSED; | |
80166 | - CGEN_INSN_INT value ATTRIBUTE_UNUSED; | |
80161 | +dis_hash_insn (const char *buf ATTRIBUTE_UNUSED, | |
80162 | + CGEN_INSN_INT value ATTRIBUTE_UNUSED) | |
80167 | 80163 | { |
80168 | 80164 | return CGEN_DIS_HASH (buf, value); |
80169 | 80165 | } |
@@ -1695,15 +1695,13 @@ static const CGEN_OPCODE m32r_cgen_macro_insn_opcode_table[] = | ||
1695 | 1695 | Targets are free to override CGEN_{ASM,DIS}_HASH_P in the .opc file. */ |
1696 | 1696 | |
1697 | 1697 | static int |
1698 | -asm_hash_insn_p (insn) | |
1699 | - const CGEN_INSN *insn ATTRIBUTE_UNUSED; | |
1698 | +asm_hash_insn_p (const CGEN_INSN *insn ATTRIBUTE_UNUSED) | |
1700 | 1699 | { |
1701 | 1700 | return CGEN_ASM_HASH_P (insn); |
1702 | 1701 | } |
1703 | 1702 | |
1704 | 1703 | static int |
1705 | -dis_hash_insn_p (insn) | |
1706 | - const CGEN_INSN *insn; | |
1704 | +dis_hash_insn_p (const CGEN_INSN *insn) | |
1707 | 1705 | { |
1708 | 1706 | /* If building the hash table and the NO-DIS attribute is present, |
1709 | 1707 | ignore. */ |
@@ -1735,8 +1733,7 @@ dis_hash_insn_p (insn) | ||
1735 | 1733 | Targets are free to override CGEN_{ASM,DIS}_HASH in the .opc file. */ |
1736 | 1734 | |
1737 | 1735 | static unsigned int |
1738 | -asm_hash_insn (mnem) | |
1739 | - const char * mnem; | |
1736 | +asm_hash_insn (const char *mnem) | |
1740 | 1737 | { |
1741 | 1738 | return CGEN_ASM_HASH (mnem); |
1742 | 1739 | } |
@@ -1745,9 +1742,8 @@ asm_hash_insn (mnem) | ||
1745 | 1742 | VALUE is the first base_insn_bitsize bits as an int in host order. */ |
1746 | 1743 | |
1747 | 1744 | static unsigned int |
1748 | -dis_hash_insn (buf, value) | |
1749 | - const char * buf ATTRIBUTE_UNUSED; | |
1750 | - CGEN_INSN_INT value ATTRIBUTE_UNUSED; | |
1745 | +dis_hash_insn (const char *buf ATTRIBUTE_UNUSED, | |
1746 | + CGEN_INSN_INT value ATTRIBUTE_UNUSED) | |
1751 | 1747 | { |
1752 | 1748 | return CGEN_DIS_HASH (buf, value); |
1753 | 1749 | } |
@@ -751,8 +751,7 @@ static const CGEN_OPINST *m32r_cgen_opinst_table[MAX_INSNS] = { | ||
751 | 751 | /* Function to call before using the operand instance table. */ |
752 | 752 | |
753 | 753 | void |
754 | -m32r_cgen_init_opinst_table (cd) | |
755 | - CGEN_CPU_DESC cd; | |
754 | +m32r_cgen_init_opinst_table (CGEN_CPU_DESC cd) | |
756 | 755 | { |
757 | 756 | int i; |
758 | 757 | const CGEN_OPINST **oi = & m32r_cgen_opinst_table[0]; |
@@ -6316,15 +6316,13 @@ static const CGEN_OPCODE mep_cgen_macro_insn_opcode_table[] = | ||
6316 | 6316 | Targets are free to override CGEN_{ASM,DIS}_HASH_P in the .opc file. */ |
6317 | 6317 | |
6318 | 6318 | static int |
6319 | -asm_hash_insn_p (insn) | |
6320 | - const CGEN_INSN *insn ATTRIBUTE_UNUSED; | |
6319 | +asm_hash_insn_p (const CGEN_INSN *insn ATTRIBUTE_UNUSED) | |
6321 | 6320 | { |
6322 | 6321 | return CGEN_ASM_HASH_P (insn); |
6323 | 6322 | } |
6324 | 6323 | |
6325 | 6324 | static int |
6326 | -dis_hash_insn_p (insn) | |
6327 | - const CGEN_INSN *insn; | |
6325 | +dis_hash_insn_p (const CGEN_INSN *insn) | |
6328 | 6326 | { |
6329 | 6327 | /* If building the hash table and the NO-DIS attribute is present, |
6330 | 6328 | ignore. */ |
@@ -6356,8 +6354,7 @@ dis_hash_insn_p (insn) | ||
6356 | 6354 | Targets are free to override CGEN_{ASM,DIS}_HASH in the .opc file. */ |
6357 | 6355 | |
6358 | 6356 | static unsigned int |
6359 | -asm_hash_insn (mnem) | |
6360 | - const char * mnem; | |
6357 | +asm_hash_insn (const char *mnem) | |
6361 | 6358 | { |
6362 | 6359 | return CGEN_ASM_HASH (mnem); |
6363 | 6360 | } |
@@ -6366,9 +6363,8 @@ asm_hash_insn (mnem) | ||
6366 | 6363 | VALUE is the first base_insn_bitsize bits as an int in host order. */ |
6367 | 6364 | |
6368 | 6365 | static unsigned int |
6369 | -dis_hash_insn (buf, value) | |
6370 | - const char * buf ATTRIBUTE_UNUSED; | |
6371 | - CGEN_INSN_INT value ATTRIBUTE_UNUSED; | |
6366 | +dis_hash_insn (const char *buf ATTRIBUTE_UNUSED, | |
6367 | + CGEN_INSN_INT value ATTRIBUTE_UNUSED) | |
6372 | 6368 | { |
6373 | 6369 | return CGEN_DIS_HASH (buf, value); |
6374 | 6370 | } |
@@ -813,15 +813,13 @@ static const CGEN_OPCODE mt_cgen_macro_insn_opcode_table[] = | ||
813 | 813 | Targets are free to override CGEN_{ASM,DIS}_HASH_P in the .opc file. */ |
814 | 814 | |
815 | 815 | static int |
816 | -asm_hash_insn_p (insn) | |
817 | - const CGEN_INSN *insn ATTRIBUTE_UNUSED; | |
816 | +asm_hash_insn_p (const CGEN_INSN *insn ATTRIBUTE_UNUSED) | |
818 | 817 | { |
819 | 818 | return CGEN_ASM_HASH_P (insn); |
820 | 819 | } |
821 | 820 | |
822 | 821 | static int |
823 | -dis_hash_insn_p (insn) | |
824 | - const CGEN_INSN *insn; | |
822 | +dis_hash_insn_p (const CGEN_INSN *insn) | |
825 | 823 | { |
826 | 824 | /* If building the hash table and the NO-DIS attribute is present, |
827 | 825 | ignore. */ |
@@ -853,8 +851,7 @@ dis_hash_insn_p (insn) | ||
853 | 851 | Targets are free to override CGEN_{ASM,DIS}_HASH in the .opc file. */ |
854 | 852 | |
855 | 853 | static unsigned int |
856 | -asm_hash_insn (mnem) | |
857 | - const char * mnem; | |
854 | +asm_hash_insn (const char *mnem) | |
858 | 855 | { |
859 | 856 | return CGEN_ASM_HASH (mnem); |
860 | 857 | } |
@@ -863,9 +860,8 @@ asm_hash_insn (mnem) | ||
863 | 860 | VALUE is the first base_insn_bitsize bits as an int in host order. */ |
864 | 861 | |
865 | 862 | static unsigned int |
866 | -dis_hash_insn (buf, value) | |
867 | - const char * buf ATTRIBUTE_UNUSED; | |
868 | - CGEN_INSN_INT value ATTRIBUTE_UNUSED; | |
863 | +dis_hash_insn (const char *buf ATTRIBUTE_UNUSED, | |
864 | + CGEN_INSN_INT value ATTRIBUTE_UNUSED) | |
869 | 865 | { |
870 | 866 | return CGEN_DIS_HASH (buf, value); |
871 | 867 | } |
@@ -968,15 +968,13 @@ static const CGEN_OPCODE or1k_cgen_macro_insn_opcode_table[] = | ||
968 | 968 | Targets are free to override CGEN_{ASM,DIS}_HASH_P in the .opc file. */ |
969 | 969 | |
970 | 970 | static int |
971 | -asm_hash_insn_p (insn) | |
972 | - const CGEN_INSN *insn ATTRIBUTE_UNUSED; | |
971 | +asm_hash_insn_p (const CGEN_INSN *insn ATTRIBUTE_UNUSED) | |
973 | 972 | { |
974 | 973 | return CGEN_ASM_HASH_P (insn); |
975 | 974 | } |
976 | 975 | |
977 | 976 | static int |
978 | -dis_hash_insn_p (insn) | |
979 | - const CGEN_INSN *insn; | |
977 | +dis_hash_insn_p (const CGEN_INSN *insn) | |
980 | 978 | { |
981 | 979 | /* If building the hash table and the NO-DIS attribute is present, |
982 | 980 | ignore. */ |
@@ -1008,8 +1006,7 @@ dis_hash_insn_p (insn) | ||
1008 | 1006 | Targets are free to override CGEN_{ASM,DIS}_HASH in the .opc file. */ |
1009 | 1007 | |
1010 | 1008 | static unsigned int |
1011 | -asm_hash_insn (mnem) | |
1012 | - const char * mnem; | |
1009 | +asm_hash_insn (const char *mnem) | |
1013 | 1010 | { |
1014 | 1011 | return CGEN_ASM_HASH (mnem); |
1015 | 1012 | } |
@@ -1018,9 +1015,8 @@ asm_hash_insn (mnem) | ||
1018 | 1015 | VALUE is the first base_insn_bitsize bits as an int in host order. */ |
1019 | 1016 | |
1020 | 1017 | static unsigned int |
1021 | -dis_hash_insn (buf, value) | |
1022 | - const char * buf ATTRIBUTE_UNUSED; | |
1023 | - CGEN_INSN_INT value ATTRIBUTE_UNUSED; | |
1018 | +dis_hash_insn (const char *buf ATTRIBUTE_UNUSED, | |
1019 | + CGEN_INSN_INT value ATTRIBUTE_UNUSED) | |
1024 | 1020 | { |
1025 | 1021 | return CGEN_DIS_HASH (buf, value); |
1026 | 1022 | } |
@@ -579,8 +579,7 @@ static const CGEN_OPINST *or1k_cgen_opinst_table[MAX_INSNS] = { | ||
579 | 579 | /* Function to call before using the operand instance table. */ |
580 | 580 | |
581 | 581 | void |
582 | -or1k_cgen_init_opinst_table (cd) | |
583 | - CGEN_CPU_DESC cd; | |
582 | +or1k_cgen_init_opinst_table (CGEN_CPU_DESC cd) | |
584 | 583 | { |
585 | 584 | int i; |
586 | 585 | const CGEN_OPINST **oi = & or1k_cgen_opinst_table[0]; |
@@ -233,9 +233,7 @@ const int tic80_num_predefined_symbols = sizeof (tic80_predefined_symbols) / siz | ||
233 | 233 | */ |
234 | 234 | |
235 | 235 | int |
236 | -tic80_symbol_to_value (name, symbol_class) | |
237 | - char *name; | |
238 | - int symbol_class; | |
236 | +tic80_symbol_to_value (char *name, int symbol_class) | |
239 | 237 | { |
240 | 238 | const struct predefined_symbol *pdsp; |
241 | 239 | int low = 0; |
@@ -275,9 +273,7 @@ tic80_symbol_to_value (name, symbol_class) | ||
275 | 273 | is zero, the first matching symbol is returned. */ |
276 | 274 | |
277 | 275 | const char * |
278 | -tic80_value_to_symbol (val, symbol_class) | |
279 | - int val; | |
280 | - int symbol_class; | |
276 | +tic80_value_to_symbol (int val, int symbol_class) | |
281 | 277 | { |
282 | 278 | const struct predefined_symbol *pdsp; |
283 | 279 | int ival; |
@@ -310,8 +306,7 @@ tic80_value_to_symbol (val, symbol_class) | ||
310 | 306 | returns NULL. */ |
311 | 307 | |
312 | 308 | const struct predefined_symbol * |
313 | -tic80_next_predefined_symbol (pdsp) | |
314 | - const struct predefined_symbol *pdsp; | |
309 | +tic80_next_predefined_symbol (const struct predefined_symbol *pdsp) | |
315 | 310 | { |
316 | 311 | if (pdsp == NULL) |
317 | 312 | { |
@@ -2939,15 +2939,13 @@ static const CGEN_OPCODE xc16x_cgen_macro_insn_opcode_table[] = | ||
2939 | 2939 | Targets are free to override CGEN_{ASM,DIS}_HASH_P in the .opc file. */ |
2940 | 2940 | |
2941 | 2941 | static int |
2942 | -asm_hash_insn_p (insn) | |
2943 | - const CGEN_INSN *insn ATTRIBUTE_UNUSED; | |
2942 | +asm_hash_insn_p (const CGEN_INSN *insn ATTRIBUTE_UNUSED) | |
2944 | 2943 | { |
2945 | 2944 | return CGEN_ASM_HASH_P (insn); |
2946 | 2945 | } |
2947 | 2946 | |
2948 | 2947 | static int |
2949 | -dis_hash_insn_p (insn) | |
2950 | - const CGEN_INSN *insn; | |
2948 | +dis_hash_insn_p (const CGEN_INSN *insn) | |
2951 | 2949 | { |
2952 | 2950 | /* If building the hash table and the NO-DIS attribute is present, |
2953 | 2951 | ignore. */ |
@@ -2979,8 +2977,7 @@ dis_hash_insn_p (insn) | ||
2979 | 2977 | Targets are free to override CGEN_{ASM,DIS}_HASH in the .opc file. */ |
2980 | 2978 | |
2981 | 2979 | static unsigned int |
2982 | -asm_hash_insn (mnem) | |
2983 | - const char * mnem; | |
2980 | +asm_hash_insn (const char *mnem) | |
2984 | 2981 | { |
2985 | 2982 | return CGEN_ASM_HASH (mnem); |
2986 | 2983 | } |
@@ -2989,9 +2986,8 @@ asm_hash_insn (mnem) | ||
2989 | 2986 | VALUE is the first base_insn_bitsize bits as an int in host order. */ |
2990 | 2987 | |
2991 | 2988 | static unsigned int |
2992 | -dis_hash_insn (buf, value) | |
2993 | - const char * buf ATTRIBUTE_UNUSED; | |
2994 | - CGEN_INSN_INT value ATTRIBUTE_UNUSED; | |
2989 | +dis_hash_insn (const char *buf ATTRIBUTE_UNUSED, | |
2990 | + CGEN_INSN_INT value ATTRIBUTE_UNUSED) | |
2995 | 2991 | { |
2996 | 2992 | return CGEN_DIS_HASH (buf, value); |
2997 | 2993 | } |
@@ -1063,15 +1063,13 @@ static const CGEN_OPCODE xstormy16_cgen_macro_insn_opcode_table[] = | ||
1063 | 1063 | Targets are free to override CGEN_{ASM,DIS}_HASH_P in the .opc file. */ |
1064 | 1064 | |
1065 | 1065 | static int |
1066 | -asm_hash_insn_p (insn) | |
1067 | - const CGEN_INSN *insn ATTRIBUTE_UNUSED; | |
1066 | +asm_hash_insn_p (const CGEN_INSN *insn ATTRIBUTE_UNUSED) | |
1068 | 1067 | { |
1069 | 1068 | return CGEN_ASM_HASH_P (insn); |
1070 | 1069 | } |
1071 | 1070 | |
1072 | 1071 | static int |
1073 | -dis_hash_insn_p (insn) | |
1074 | - const CGEN_INSN *insn; | |
1072 | +dis_hash_insn_p (const CGEN_INSN *insn) | |
1075 | 1073 | { |
1076 | 1074 | /* If building the hash table and the NO-DIS attribute is present, |
1077 | 1075 | ignore. */ |
@@ -1103,8 +1101,7 @@ dis_hash_insn_p (insn) | ||
1103 | 1101 | Targets are free to override CGEN_{ASM,DIS}_HASH in the .opc file. */ |
1104 | 1102 | |
1105 | 1103 | static unsigned int |
1106 | -asm_hash_insn (mnem) | |
1107 | - const char * mnem; | |
1104 | +asm_hash_insn (const char *mnem) | |
1108 | 1105 | { |
1109 | 1106 | return CGEN_ASM_HASH (mnem); |
1110 | 1107 | } |
@@ -1113,9 +1110,8 @@ asm_hash_insn (mnem) | ||
1113 | 1110 | VALUE is the first base_insn_bitsize bits as an int in host order. */ |
1114 | 1111 | |
1115 | 1112 | static unsigned int |
1116 | -dis_hash_insn (buf, value) | |
1117 | - const char * buf ATTRIBUTE_UNUSED; | |
1118 | - CGEN_INSN_INT value ATTRIBUTE_UNUSED; | |
1113 | +dis_hash_insn (const char *buf ATTRIBUTE_UNUSED, | |
1114 | + CGEN_INSN_INT value ATTRIBUTE_UNUSED) | |
1119 | 1115 | { |
1120 | 1116 | return CGEN_DIS_HASH (buf, value); |
1121 | 1117 | } |