summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTrevor Saunders <tbsaunde+binutils@tbsaunde.org>2016-04-13 18:30:46 -0400
committerTrevor Saunders <tbsaunde+binutils@tbsaunde.org>2016-04-20 07:04:49 -0400
commite6c7cdec063514bb9ffe2a62fb280e5ec676cac0 (patch)
tree262de0fe97cffbd611a1e549fc10803fee3012b7
parentb98e6871247e1ef764360f6d042254ce4af62ca4 (diff)
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.
-rw-r--r--bfd/ChangeLog7
-rw-r--r--bfd/cache.c2
-rw-r--r--bfd/elf32-m68k.c9
-rw-r--r--bfd/elf64-mmix.c9
-rw-r--r--bfd/stab-syms.c3
-rw-r--r--binutils/ChangeLog4
-rw-r--r--binutils/resres.c3
-rw-r--r--gas/ChangeLog10
-rw-r--r--gas/cgen.c6
-rw-r--r--gas/config/tc-bfin.c2
-rw-r--r--gas/config/tc-ia64.c2
-rw-r--r--gas/config/tc-mep.c4
-rw-r--r--gas/config/tc-metag.c4
-rw-r--r--gas/config/tc-nios2.c2
-rw-r--r--gas/config/tc-rl78.c2
-rw-r--r--gprof/ChangeLog11
-rw-r--r--gprof/basic_blocks.c4
-rw-r--r--gprof/cg_arcs.c4
-rw-r--r--gprof/cg_print.c14
-rw-r--r--gprof/gen-c-prog.awk3
-rw-r--r--gprof/gmon_io.c4
-rw-r--r--gprof/hertz.c2
-rw-r--r--gprof/hist.c6
-rw-r--r--gprof/sym_ids.c2
-rw-r--r--ld/ChangeLog4
-rw-r--r--ld/emultempl/scoreelf.em2
-rw-r--r--opcodes/ChangeLog23
-rw-r--r--opcodes/alpha-dis.c4
-rw-r--r--opcodes/crx-dis.c4
-rw-r--r--opcodes/disassemble.c6
-rw-r--r--opcodes/epiphany-opc.c14
-rw-r--r--opcodes/fr30-opc.c14
-rw-r--r--opcodes/frv-opc.c14
-rw-r--r--opcodes/ip2k-opc.c14
-rw-r--r--opcodes/iq2000-opc.c14
-rw-r--r--opcodes/lm32-opc.c14
-rw-r--r--opcodes/lm32-opinst.c3
-rw-r--r--opcodes/m32c-opc.c14
-rw-r--r--opcodes/m32r-opc.c14
-rw-r--r--opcodes/m32r-opinst.c3
-rw-r--r--opcodes/mep-opc.c14
-rw-r--r--opcodes/mt-opc.c14
-rw-r--r--opcodes/or1k-opc.c14
-rw-r--r--opcodes/or1k-opinst.c3
-rw-r--r--opcodes/tic80-opc.c11
-rw-r--r--opcodes/xc16x-opc.c14
-rw-r--r--opcodes/xstormy16-opc.c14
47 files changed, 171 insertions, 193 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index fe09bac121..f4bebd9d28 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,5 +1,12 @@
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.
+
+2016-04-20 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
+
* elf32-arm.c (put_thumb2_insn): Change argument type to bfd_byte *.
2016-04-15 H.J. Lu <hongjiu.lu@intel.com>
diff --git a/bfd/cache.c b/bfd/cache.c
index 17bf7ea9d5..995cf1f9eb 100644
--- a/bfd/cache.c
+++ b/bfd/cache.c
@@ -566,7 +566,7 @@ RETURNS
*/
bfd_boolean
-bfd_cache_close_all ()
+bfd_cache_close_all (void)
{
bfd_boolean ret = TRUE;
diff --git a/bfd/elf32-m68k.c b/bfd/elf32-m68k.c
index 0176cc9a43..7e2d9f59a3 100644
--- a/bfd/elf32-m68k.c
+++ b/bfd/elf32-m68k.c
@@ -4579,12 +4579,9 @@ elf_m68k_finish_dynamic_sections (bfd *output_bfd, struct bfd_link_info *info)
objects, and before the final_link entry point is called. */
bfd_boolean
-bfd_m68k_elf32_create_embedded_relocs (abfd, info, datasec, relsec, errmsg)
- bfd *abfd;
- struct bfd_link_info *info;
- asection *datasec;
- asection *relsec;
- char **errmsg;
+bfd_m68k_elf32_create_embedded_relocs (bfd *abfd, struct bfd_link_info *info,
+ asection *datasec, asection *relsec,
+ char **errmsg)
{
Elf_Internal_Shdr *symtab_hdr;
Elf_Internal_Sym *isymbuf = NULL;
diff --git a/bfd/elf64-mmix.c b/bfd/elf64-mmix.c
index 62ce9a565b..b15ef9f9bb 100644
--- a/bfd/elf64-mmix.c
+++ b/bfd/elf64-mmix.c
@@ -2114,9 +2114,7 @@ static asymbol *mmix_elf_reg_section_symbol_ptr;
/* Handle the special section numbers that a symbol may use. */
void
-mmix_elf_symbol_processing (abfd, asym)
- bfd *abfd ATTRIBUTE_UNUSED;
- asymbol *asym;
+mmix_elf_symbol_processing (bfd *abfd ATTRIBUTE_UNUSED, asymbol *asym)
{
elf_symbol_type *elfsym;
@@ -2491,9 +2489,8 @@ bpo_reloc_request_sort_fn (const void * p1, const void * p2)
from base-plus-offset relocs. */
void
-mmix_dump_bpo_gregs (link_info, pf)
- struct bfd_link_info *link_info;
- bfd_error_handler_type pf;
+mmix_dump_bpo_gregs (struct bfd_link_info *link_info,
+ bfd_error_handler_type pf)
{
bfd *bpo_greg_owner;
asection *bpo_gregs_section;
diff --git a/bfd/stab-syms.c b/bfd/stab-syms.c
index bcbf5f2063..8d23818f37 100644
--- a/bfd/stab-syms.c
+++ b/bfd/stab-syms.c
@@ -45,8 +45,7 @@
__define_name (N_WARNING, "WARNING")
const char *
-bfd_get_stab_name (code)
- int code;
+bfd_get_stab_name (int code)
{
switch (code)
{
diff --git a/binutils/ChangeLog b/binutils/ChangeLog
index 81cf21e745..100ef0c68a 100644
--- a/binutils/ChangeLog
+++ b/binutils/ChangeLog
@@ -1,3 +1,7 @@
+2016-04-20 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
+
+ * resres.c: Likewise.
+
2016-04-15 H.J. Lu <hongjiu.lu@intel.com>
* Makefile.in: Regenerated with automake 1.11.6.
diff --git a/binutils/resres.c b/binutils/resres.c
index c76b8d8216..570cc5fc77 100644
--- a/binutils/resres.c
+++ b/binutils/resres.c
@@ -386,8 +386,7 @@ write_res_bin (windres_bfd *wrbfd, rc_uint_type off, const rc_res_resource *res,
/* Get number of bytes needed to store an id in binary format */
static unsigned long
-get_id_size (id)
- const rc_res_id *id;
+get_id_size (const rc_res_id *id)
{
if (id->named)
return sizeof (unichar) * (id->u.n.length + 1);
diff --git a/gas/ChangeLog b/gas/ChangeLog
index 295e8142fa..69cfbe10b0 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,13 @@
+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.
+
2016-04-20 Andrew Burgess <andrew.burgess@embecosm.com>
* doc/c-arc.texi (ARC Options): Add nps400 to list of valus for
diff --git a/gas/cgen.c b/gas/cgen.c
index c04a92187f..232a41f715 100644
--- a/gas/cgen.c
+++ b/gas/cgen.c
@@ -92,7 +92,7 @@ static int num_fixups;
??? May wish to make this static and delete calls in md_assemble. */
void
-gas_cgen_init_parse ()
+gas_cgen_init_parse (void)
{
num_fixups = 0;
}
@@ -154,7 +154,7 @@ struct saved_fixups
static struct saved_fixups stored_fixups[MAX_SAVED_FIXUP_CHAINS];
void
-gas_cgen_initialize_saved_fixups_array ()
+gas_cgen_initialize_saved_fixups_array (void)
{
int i = 0;
@@ -1047,7 +1047,7 @@ gas_cgen_tc_gen_reloc (asection *section ATTRIBUTE_UNUSED, fixS *fixP)
Called after gas_cgen_cpu_desc has been created. */
void
-gas_cgen_begin ()
+gas_cgen_begin (void)
{
if (flag_signed_overflow_ok)
cgen_set_signed_overflow_ok (gas_cgen_cpu_desc);
diff --git a/gas/config/tc-bfin.c b/gas/config/tc-bfin.c
index 4f9ad7ea69..8cf2d5b85d 100644
--- a/gas/config/tc-bfin.c
+++ b/gas/config/tc-bfin.c
@@ -446,7 +446,7 @@ md_show_usage (FILE * stream)
/* Perform machine-specific initializations. */
void
-md_begin ()
+md_begin (void)
{
/* Set the ELF flags if desired. */
if (bfin_flags)
diff --git a/gas/config/tc-ia64.c b/gas/config/tc-ia64.c
index 2d10e8ae4f..c2194aaad8 100644
--- a/gas/config/tc-ia64.c
+++ b/gas/config/tc-ia64.c
@@ -4120,7 +4120,7 @@ save_prologue_count (unsigned long lbl, unsigned int count)
}
static void
-free_saved_prologue_counts ()
+free_saved_prologue_counts (void)
{
label_prologue_count *lpc = unwind.saved_prologue_counts;
label_prologue_count *next;
diff --git a/gas/config/tc-mep.c b/gas/config/tc-mep.c
index 6e62ad50fe..6128b6e669 100644
--- a/gas/config/tc-mep.c
+++ b/gas/config/tc-mep.c
@@ -465,7 +465,7 @@ mep_parse_operand (CGEN_CPU_DESC cd, enum cgen_parse_operand_type want,
}
void
-md_begin ()
+md_begin (void)
{
/* Initialize the `cgen' interface. */
@@ -1934,7 +1934,7 @@ mep_cgen_record_fixup_exp (fragS *frag,
tc_gen_reloc. */
void
-mep_frob_file ()
+mep_frob_file (void)
{
struct mep_hi_fixup * l;
diff --git a/gas/config/tc-metag.c b/gas/config/tc-metag.c
index cc9140bbd8..10ed046e22 100644
--- a/gas/config/tc-metag.c
+++ b/gas/config/tc-metag.c
@@ -7002,9 +7002,7 @@ metag_parse_name (char const * name, expressionS * exprP, enum expr_mode mode,
then it is done here. */
arelent *
-tc_gen_reloc (seg, fixp)
- asection *seg ATTRIBUTE_UNUSED;
- fixS *fixp;
+tc_gen_reloc (asection *seg ATTRIBUTE_UNUSED, fixS *fixp)
{
arelent *reloc;
diff --git a/gas/config/tc-nios2.c b/gas/config/tc-nios2.c
index d207758352..a9d3a595a2 100644
--- a/gas/config/tc-nios2.c
+++ b/gas/config/tc-nios2.c
@@ -3910,7 +3910,7 @@ md_pcrel_from (fixS *fixP ATTRIBUTE_UNUSED)
/* Called just before the assembler exits. */
void
-md_end ()
+md_end (void)
{
/* FIXME - not yet implemented */
}
diff --git a/gas/config/tc-rl78.c b/gas/config/tc-rl78.c
index 0739d341a5..a695ad695f 100644
--- a/gas/config/tc-rl78.c
+++ b/gas/config/tc-rl78.c
@@ -131,7 +131,7 @@ rl78_prefix (int p)
}
int
-rl78_has_prefix ()
+rl78_has_prefix (void)
{
return rl78_bytes.n_prefix;
}
diff --git a/gprof/ChangeLog b/gprof/ChangeLog
index af43cd1335..33766bb65e 100644
--- a/gprof/ChangeLog
+++ b/gprof/ChangeLog
@@ -1,3 +1,14 @@
+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.
+
2016-04-15 H.J. Lu <hongjiu.lu@intel.com>
* Makefile.in: Regenerated with automake 1.11.6.
diff --git a/gprof/basic_blocks.c b/gprof/basic_blocks.c
index dac093af93..a588b2ec65 100644
--- a/gprof/basic_blocks.c
+++ b/gprof/basic_blocks.c
@@ -248,7 +248,7 @@ bb_write_blocks (FILE *ofp, const char *filename)
<filename>:<line-number>: (<function-name>:<bb-addr): <ncalls> */
void
-print_exec_counts ()
+print_exec_counts (void)
{
Sym **sorted_bbs, *sym;
unsigned int i, j, len;
@@ -459,7 +459,7 @@ annotate_with_count (char *buf, unsigned int width, int line_num, PTR arg)
regarding that source file are printed. */
void
-print_annotated_source ()
+print_annotated_source (void)
{
Sym *sym, *line_stats, *new_line;
Source_File *sf;
diff --git a/gprof/cg_arcs.c b/gprof/cg_arcs.c
index 1fa619dbd8..c51137d75a 100644
--- a/gprof/cg_arcs.c
+++ b/gprof/cg_arcs.c
@@ -245,7 +245,7 @@ propagate_time (Sym *parent)
* its members.
*/
static void
-cycle_time ()
+cycle_time (void)
{
Sym *member, *cyc;
@@ -269,7 +269,7 @@ cycle_time ()
static void
-cycle_link ()
+cycle_link (void)
{
Sym *sym, *cyc, *member;
Arc *arc;
diff --git a/gprof/cg_print.c b/gprof/cg_print.c
index 30f445f9ad..77a0c4c133 100644
--- a/gprof/cg_print.c
+++ b/gprof/cg_print.c
@@ -61,7 +61,7 @@ double print_time = 0.0;
static void
-print_header ()
+print_header (void)
{
if (first_output)
first_output = FALSE;
@@ -561,7 +561,7 @@ cmp_name (const PTR left, const PTR right)
void
-cg_print_index ()
+cg_print_index (void)
{
unsigned int sym_index;
unsigned int nnames, todo, i, j;
@@ -984,13 +984,9 @@ cg_print_function_ordering (void)
#define MOST 0.99
static void
-order_and_dump_functions_by_arcs (the_arcs, arc_count, all,
- unplaced_arcs, unplaced_arc_count)
- Arc **the_arcs;
- unsigned long arc_count;
- int all;
- Arc **unplaced_arcs;
- unsigned long *unplaced_arc_count;
+order_and_dump_functions_by_arcs (Arc **the_arcs, unsigned long arc_count,
+ int all, Arc **unplaced_arcs,
+ unsigned long *unplaced_arc_count)
{
#ifdef __GNUC__
unsigned long long tmp_arcs, total_arcs;
diff --git a/gprof/gen-c-prog.awk b/gprof/gen-c-prog.awk
index d91694072b..c66cf45d0b 100644
--- a/gprof/gen-c-prog.awk
+++ b/gprof/gen-c-prog.awk
@@ -15,8 +15,7 @@ NR == 1 {
print ""
print "void ", FUNCTION, "(FILE *);"
print "void";
- printf "%s (file)\n", FUNCTION
- print " FILE *file;";
+ printf "%s (FILE *file)\n", FUNCTION
print "{";
}
printf " fputs (\"";
diff --git a/gprof/gmon_io.c b/gprof/gmon_io.c
index 71a12aa7f2..c827ae67d0 100644
--- a/gprof/gmon_io.c
+++ b/gprof/gmon_io.c
@@ -61,7 +61,7 @@ int gmon_input = 0;
int gmon_file_version = 0; /* 0 == old (non-versioned) file format. */
static enum gmon_ptr_size
-gmon_get_ptr_size ()
+gmon_get_ptr_size (void)
{
int size;
@@ -87,7 +87,7 @@ gmon_get_ptr_size ()
}
static enum gmon_ptr_signedness
-gmon_get_ptr_signedness ()
+gmon_get_ptr_signedness (void)
{
int sext;
diff --git a/gprof/hertz.c b/gprof/hertz.c
index 6fa1db49ce..dc052d5663 100644
--- a/gprof/hertz.c
+++ b/gprof/hertz.c
@@ -31,7 +31,7 @@
int
-hertz ()
+hertz (void)
{
#ifdef HERTZ
return HERTZ;
diff --git a/gprof/hist.c b/gprof/hist.c
index d81ca269c4..076412966e 100644
--- a/gprof/hist.c
+++ b/gprof/hist.c
@@ -289,7 +289,7 @@ hist_write_hist (FILE * ofp, const char *filename)
next bin. */
static void
-scale_and_align_entries ()
+scale_and_align_entries (void)
{
Sym *sym;
bfd_vma bin_of_entry;
@@ -445,7 +445,7 @@ hist_assign_samples_1 (histogram *r)
/* Calls 'hist_assign_sampes_1' for all histogram records read so far. */
void
-hist_assign_samples ()
+hist_assign_samples (void)
{
unsigned i;
@@ -562,7 +562,7 @@ cmp_time (const PTR lp, const PTR rp)
/* Print the flat histogram profile. */
void
-hist_print ()
+hist_print (void)
{
Sym **time_sorted_syms, *top_dog, *sym;
unsigned int sym_index;
diff --git a/gprof/sym_ids.c b/gprof/sym_ids.c
index 9a93022a49..d94207566b 100644
--- a/gprof/sym_ids.c
+++ b/gprof/sym_ids.c
@@ -273,7 +273,7 @@ extend_match (struct match *m, Sym *sym, Sym_Table *tab, bfd_boolean second_pass
requests---you get what you ask for! */
void
-sym_id_parse ()
+sym_id_parse (void)
{
Sym *sym, *left, *right;
struct sym_id *id;
diff --git a/ld/ChangeLog b/ld/ChangeLog
index e206ea30a5..994c295629 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,3 +1,7 @@
+2016-04-20 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
+
+ * emultempl/scoreelf.em: Likewise.
+
2016-04-19 H.J. Lu <hongjiu.lu@intel.com>
PR ld/19719
diff --git a/ld/emultempl/scoreelf.em b/ld/emultempl/scoreelf.em
index 364fcef9ed..6433365f66 100644
--- a/ld/emultempl/scoreelf.em
+++ b/ld/emultempl/scoreelf.em
@@ -31,7 +31,7 @@ fragment <<EOF
#include "elf32-score.h"
static void
-gld${EMULATION_NAME}_before_parse ()
+gld${EMULATION_NAME}_before_parse (void)
{
#ifndef TARGET_ /* I.e., if not generic. */
ldfile_set_output_arch ("`echo ${ARCH}`", bfd_arch_unknown);
diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog
index 383cebf35a..c42397614c 100644
--- a/opcodes/ChangeLog
+++ b/opcodes/ChangeLog
@@ -1,3 +1,26 @@
+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.
+
2016-04-19 Andrew Burgess <andrew.burgess@embecosm.com>
* arc-nps400-tbl.h: Add addb, subb, adcb, sbcb, andb, xorb, orb,
diff --git a/opcodes/alpha-dis.c b/opcodes/alpha-dis.c
index f592fb9b38..40204dabcb 100644
--- a/opcodes/alpha-dis.c
+++ b/opcodes/alpha-dis.c
@@ -54,9 +54,7 @@ static const char * const vms_regnames[64] = {
/* Disassemble Alpha instructions. */
int
-print_insn_alpha (memaddr, info)
- bfd_vma memaddr;
- struct disassemble_info *info;
+print_insn_alpha (bfd_vma memaddr, struct disassemble_info *info)
{
static const struct alpha_opcode *opcode_index[AXP_NOPS+1];
const char * const * regnames;
diff --git a/opcodes/crx-dis.c b/opcodes/crx-dis.c
index 0d2fcea5f0..2da70edda8 100644
--- a/opcodes/crx-dis.c
+++ b/opcodes/crx-dis.c
@@ -714,9 +714,7 @@ get_words_at_PC (bfd_vma memaddr, struct disassemble_info *info)
/* Prints the instruction by calling print_arguments after proper matching. */
int
-print_insn_crx (memaddr, info)
- bfd_vma memaddr;
- struct disassemble_info *info;
+print_insn_crx (bfd_vma memaddr, struct disassemble_info *info)
{
int is_decoded; /* Nonzero means instruction has a match. */
diff --git a/opcodes/disassemble.c b/opcodes/disassemble.c
index d616e6f786..b818d8b594 100644
--- a/opcodes/disassemble.c
+++ b/opcodes/disassemble.c
@@ -106,8 +106,7 @@
#endif
disassembler_ftype
-disassembler (abfd)
- bfd *abfd;
+disassembler (bfd *abfd)
{
enum bfd_architecture a = bfd_get_arch (abfd);
disassembler_ftype disassemble;
@@ -543,8 +542,7 @@ disassembler (abfd)
}
void
-disassembler_usage (stream)
- FILE * stream ATTRIBUTE_UNUSED;
+disassembler_usage (FILE *stream ATTRIBUTE_UNUSED)
{
#ifdef ARCH_aarch64
print_aarch64_disassembler_options (stream);
diff --git a/opcodes/epiphany-opc.c b/opcodes/epiphany-opc.c
index 95b9bc608e..46538047d1 100644
--- a/opcodes/epiphany-opc.c
+++ b/opcodes/epiphany-opc.c
@@ -3922,15 +3922,13 @@ static const CGEN_OPCODE epiphany_cgen_macro_insn_opcode_table[] =
Targets are free to override CGEN_{ASM,DIS}_HASH_P in the .opc file. */
static int
-asm_hash_insn_p (insn)
- const CGEN_INSN *insn ATTRIBUTE_UNUSED;
+asm_hash_insn_p (const CGEN_INSN *insn ATTRIBUTE_UNUSED)
{
return CGEN_ASM_HASH_P (insn);
}
static int
-dis_hash_insn_p (insn)
- const CGEN_INSN *insn;
+dis_hash_insn_p (const CGEN_INSN *insn)
{
/* If building the hash table and the NO-DIS attribute is present,
ignore. */
@@ -3962,8 +3960,7 @@ dis_hash_insn_p (insn)
Targets are free to override CGEN_{ASM,DIS}_HASH in the .opc file. */
static unsigned int
-asm_hash_insn (mnem)
- const char * mnem;
+asm_hash_insn (const char *mnem)
{
return CGEN_ASM_HASH (mnem);
}
@@ -3972,9 +3969,8 @@ asm_hash_insn (mnem)
VALUE is the first base_insn_bitsize bits as an int in host order. */
static unsigned int
-dis_hash_insn (buf, value)
- const char * buf ATTRIBUTE_UNUSED;
- CGEN_INSN_INT value ATTRIBUTE_UNUSED;
+dis_hash_insn (const char *buf ATTRIBUTE_UNUSED,
+ CGEN_INSN_INT value ATTRIBUTE_UNUSED)
{
return CGEN_DIS_HASH (buf, value);
}
diff --git a/opcodes/fr30-opc.c b/opcodes/fr30-opc.c
index ccc37958f2..c832fff814 100644
--- a/opcodes/fr30-opc.c
+++ b/opcodes/fr30-opc.c
@@ -1259,15 +1259,13 @@ static const CGEN_OPCODE fr30_cgen_macro_insn_opcode_table[] =
Targets are free to override CGEN_{ASM,DIS}_HASH_P in the .opc file. */
static int
-asm_hash_insn_p (insn)
- const CGEN_INSN *insn ATTRIBUTE_UNUSED;
+asm_hash_insn_p (const CGEN_INSN *insn ATTRIBUTE_UNUSED)
{
return CGEN_ASM_HASH_P (insn);
}
static int
-dis_hash_insn_p (insn)
- const CGEN_INSN *insn;
+dis_hash_insn_p (const CGEN_INSN *insn)
{
/* If building the hash table and the NO-DIS attribute is present,
ignore. */
@@ -1299,8 +1297,7 @@ dis_hash_insn_p (insn)
Targets are free to override CGEN_{ASM,DIS}_HASH in the .opc file. */
static unsigned int
-asm_hash_insn (mnem)
- const char * mnem;
+asm_hash_insn (const char *mnem)
{
return CGEN_ASM_HASH (mnem);
}
@@ -1309,9 +1306,8 @@ asm_hash_insn (mnem)
VALUE is the first base_insn_bitsize bits as an int in host order. */
static unsigned int
-dis_hash_insn (buf, value)
- const char * buf ATTRIBUTE_UNUSED;
- CGEN_INSN_INT value ATTRIBUTE_UNUSED;
+dis_hash_insn (const char *buf ATTRIBUTE_UNUSED,
+ CGEN_INSN_INT value ATTRIBUTE_UNUSED)
{
return CGEN_DIS_HASH (buf, value);
}
diff --git a/opcodes/frv-opc.c b/opcodes/frv-opc.c
index e21bd64776..2aed2f6a95 100644
--- a/opcodes/frv-opc.c
+++ b/opcodes/frv-opc.c
@@ -6124,15 +6124,13 @@ static const CGEN_OPCODE frv_cgen_macro_insn_opcode_table[] =
Targets are free to override CGEN_{ASM,DIS}_HASH_P in the .opc file. */
static int
-asm_hash_insn_p (insn)
- const CGEN_INSN *insn ATTRIBUTE_UNUSED;
+asm_hash_insn_p (const CGEN_INSN *insn ATTRIBUTE_UNUSED)
{
return CGEN_ASM_HASH_P (insn);
}
static int
-dis_hash_insn_p (insn)
- const CGEN_INSN *insn;
+dis_hash_insn_p (const CGEN_INSN *insn)
{
/* If building the hash table and the NO-DIS attribute is present,
ignore. */
@@ -6164,8 +6162,7 @@ dis_hash_insn_p (insn)
Targets are free to override CGEN_{ASM,DIS}_HASH in the .opc file. */
static unsigned int
-asm_hash_insn (mnem)
- const char * mnem;
+asm_hash_insn (const char *mnem)
{
return CGEN_ASM_HASH (mnem);
}
@@ -6174,9 +6171,8 @@ asm_hash_insn (mnem)
VALUE is the first base_insn_bitsize bits as an int in host order. */
static unsigned int
-dis_hash_insn (buf, value)
- const char * buf ATTRIBUTE_UNUSED;
- CGEN_INSN_INT value ATTRIBUTE_UNUSED;
+dis_hash_insn (const char *buf ATTRIBUTE_UNUSED,
+ CGEN_INSN_INT value ATTRIBUTE_UNUSED)
{
return CGEN_DIS_HASH (buf, value);
}
diff --git a/opcodes/ip2k-opc.c b/opcodes/ip2k-opc.c
index 1466708faa..e8bc944497 100644
--- a/opcodes/ip2k-opc.c
+++ b/opcodes/ip2k-opc.c
@@ -790,15 +790,13 @@ static const CGEN_OPCODE ip2k_cgen_macro_insn_opcode_table[] =
Targets are free to override CGEN_{ASM,DIS}_HASH_P in the .opc file. */
static int
-asm_hash_insn_p (insn)
- const CGEN_INSN *insn ATTRIBUTE_UNUSED;
+asm_hash_insn_p (const CGEN_INSN *insn ATTRIBUTE_UNUSED)
{
return CGEN_ASM_HASH_P (insn);
}
static int
-dis_hash_insn_p (insn)
- const CGEN_INSN *insn;
+dis_hash_insn_p (const CGEN_INSN *insn)
{
/* If building the hash table and the NO-DIS attribute is present,
ignore. */
@@ -830,8 +828,7 @@ dis_hash_insn_p (insn)
Targets are free to override CGEN_{ASM,DIS}_HASH in the .opc file. */
static unsigned int
-asm_hash_insn (mnem)
- const char * mnem;
+asm_hash_insn (const char *mnem)
{
return CGEN_ASM_HASH (mnem);
}
@@ -840,9 +837,8 @@ asm_hash_insn (mnem)
VALUE is the first base_insn_bitsize bits as an int in host order. */
static unsigned int
-dis_hash_insn (buf, value)
- const char * buf ATTRIBUTE_UNUSED;
- CGEN_INSN_INT value ATTRIBUTE_UNUSED;
+dis_hash_insn (const char *buf ATTRIBUTE_UNUSED,
+ CGEN_INSN_INT value ATTRIBUTE_UNUSED)
{
return CGEN_DIS_HASH (buf, value);
}
diff --git a/opcodes/iq2000-opc.c b/opcodes/iq2000-opc.c
index e7af749e76..c4fa4387d2 100644
--- a/opcodes/iq2000-opc.c
+++ b/opcodes/iq2000-opc.c
@@ -3344,15 +3344,13 @@ static const CGEN_OPCODE iq2000_cgen_macro_insn_opcode_table[] =
Targets are free to override CGEN_{ASM,DIS}_HASH_P in the .opc file. */
static int
-asm_hash_insn_p (insn)
- const CGEN_INSN *insn ATTRIBUTE_UNUSED;
+asm_hash_insn_p (const CGEN_INSN *insn ATTRIBUTE_UNUSED)
{
return CGEN_ASM_HASH_P (insn);
}
static int
-dis_hash_insn_p (insn)
- const CGEN_INSN *insn;
+dis_hash_insn_p (const CGEN_INSN *insn)
{
/* If building the hash table and the NO-DIS attribute is present,
ignore. */
@@ -3384,8 +3382,7 @@ dis_hash_insn_p (insn)
Targets are free to override CGEN_{ASM,DIS}_HASH in the .opc file. */
static unsigned int
-asm_hash_insn (mnem)
- const char * mnem;
+asm_hash_insn (const char *mnem)
{
return CGEN_ASM_HASH (mnem);
}
@@ -3394,9 +3391,8 @@ asm_hash_insn (mnem)
VALUE is the first base_insn_bitsize bits as an int in host order. */
static unsigned int
-dis_hash_insn (buf, value)
- const char * buf ATTRIBUTE_UNUSED;
- CGEN_INSN_INT value ATTRIBUTE_UNUSED;
+dis_hash_insn (const char *buf ATTRIBUTE_UNUSED,
+ CGEN_INSN_INT value ATTRIBUTE_UNUSED)
{
return CGEN_DIS_HASH (buf, value);
}
diff --git a/opcodes/lm32-opc.c b/opcodes/lm32-opc.c
index 03d4dd3213..0d4c78aba8 100644
--- a/opcodes/lm32-opc.c
+++ b/opcodes/lm32-opc.c
@@ -742,15 +742,13 @@ static const CGEN_OPCODE lm32_cgen_macro_insn_opcode_table[] =
Targets are free to override CGEN_{ASM,DIS}_HASH_P in the .opc file. */
static int
-asm_hash_insn_p (insn)
- const CGEN_INSN *insn ATTRIBUTE_UNUSED;
+asm_hash_insn_p (const CGEN_INSN *insn ATTRIBUTE_UNUSED)
{
return CGEN_ASM_HASH_P (insn);
}
static int
-dis_hash_insn_p (insn)
- const CGEN_INSN *insn;
+dis_hash_insn_p (const CGEN_INSN *insn)
{
/* If building the hash table and the NO-DIS attribute is present,
ignore. */
@@ -782,8 +780,7 @@ dis_hash_insn_p (insn)
Targets are free to override CGEN_{ASM,DIS}_HASH in the .opc file. */
static unsigned int
-asm_hash_insn (mnem)
- const char * mnem;
+asm_hash_insn (const char *mnem)
{
return CGEN_ASM_HASH (mnem);
}
@@ -792,9 +789,8 @@ asm_hash_insn (mnem)
VALUE is the first base_insn_bitsize bits as an int in host order. */
static unsigned int
-dis_hash_insn (buf, value)
- const char * buf ATTRIBUTE_UNUSED;
- CGEN_INSN_INT value ATTRIBUTE_UNUSED;
+dis_hash_insn (const char *buf ATTRIBUTE_UNUSED,
+ CGEN_INSN_INT value ATTRIBUTE_UNUSED)
{
return CGEN_DIS_HASH (buf, value);
}
diff --git a/opcodes/lm32-opinst.c b/opcodes/lm32-opinst.c
index 8e429754eb..be908ca800 100644
--- a/opcodes/lm32-opinst.c
+++ b/opcodes/lm32-opinst.c
@@ -465,8 +465,7 @@ static const CGEN_OPINST *lm32_cgen_opinst_table[MAX_INSNS] = {
/* Function to call before using the operand instance table. */
void
-lm32_cgen_init_opinst_table (cd)
- CGEN_CPU_DESC cd;
+lm32_cgen_init_opinst_table (CGEN_CPU_DESC cd)
{
int i;
const CGEN_OPINST **oi = & lm32_cgen_opinst_table[0];
diff --git a/opcodes/m32c-opc.c b/opcodes/m32c-opc.c
index 2cfb495e7c..77b732977a 100644
--- a/opcodes/m32c-opc.c
+++ b/opcodes/m32c-opc.c
@@ -80111,15 +80111,13 @@ static const CGEN_OPCODE m32c_cgen_macro_insn_opcode_table[] =
Targets are free to override CGEN_{ASM,DIS}_HASH_P in the .opc file. */
static int
-asm_hash_insn_p (insn)
- const CGEN_INSN *insn ATTRIBUTE_UNUSED;
+asm_hash_insn_p (const CGEN_INSN *insn ATTRIBUTE_UNUSED)
{
return CGEN_ASM_HASH_P (insn);
}
static int
-dis_hash_insn_p (insn)
- const CGEN_INSN *insn;
+dis_hash_insn_p (const CGEN_INSN *insn)
{
/* If building the hash table and the NO-DIS attribute is present,
ignore. */
@@ -80151,8 +80149,7 @@ dis_hash_insn_p (insn)
Targets are free to override CGEN_{ASM,DIS}_HASH in the .opc file. */
static unsigned int
-asm_hash_insn (mnem)
- const char * mnem;
+asm_hash_insn (const char *mnem)
{
return CGEN_ASM_HASH (mnem);
}
@@ -80161,9 +80158,8 @@ asm_hash_insn (mnem)
VALUE is the first base_insn_bitsize bits as an int in host order. */
static unsigned int
-dis_hash_insn (buf, value)
- const char * buf ATTRIBUTE_UNUSED;
- CGEN_INSN_INT value ATTRIBUTE_UNUSED;
+dis_hash_insn (const char *buf ATTRIBUTE_UNUSED,
+ CGEN_INSN_INT value ATTRIBUTE_UNUSED)
{
return CGEN_DIS_HASH (buf, value);
}
diff --git a/opcodes/m32r-opc.c b/opcodes/m32r-opc.c
index 545624f79b..964862cf95 100644
--- a/opcodes/m32r-opc.c
+++ b/opcodes/m32r-opc.c
@@ -1695,15 +1695,13 @@ static const CGEN_OPCODE m32r_cgen_macro_insn_opcode_table[] =
Targets are free to override CGEN_{ASM,DIS}_HASH_P in the .opc file. */
static int
-asm_hash_insn_p (insn)
- const CGEN_INSN *insn ATTRIBUTE_UNUSED;
+asm_hash_insn_p (const CGEN_INSN *insn ATTRIBUTE_UNUSED)
{
return CGEN_ASM_HASH_P (insn);
}
static int
-dis_hash_insn_p (insn)
- const CGEN_INSN *insn;
+dis_hash_insn_p (const CGEN_INSN *insn)
{
/* If building the hash table and the NO-DIS attribute is present,
ignore. */
@@ -1735,8 +1733,7 @@ dis_hash_insn_p (insn)
Targets are free to override CGEN_{ASM,DIS}_HASH in the .opc file. */
static unsigned int
-asm_hash_insn (mnem)
- const char * mnem;
+asm_hash_insn (const char *mnem)
{
return CGEN_ASM_HASH (mnem);
}
@@ -1745,9 +1742,8 @@ asm_hash_insn (mnem)
VALUE is the first base_insn_bitsize bits as an int in host order. */
static unsigned int
-dis_hash_insn (buf, value)
- const char * buf ATTRIBUTE_UNUSED;
- CGEN_INSN_INT value ATTRIBUTE_UNUSED;
+dis_hash_insn (const char *buf ATTRIBUTE_UNUSED,
+ CGEN_INSN_INT value ATTRIBUTE_UNUSED)
{
return CGEN_DIS_HASH (buf, value);
}
diff --git a/opcodes/m32r-opinst.c b/opcodes/m32r-opinst.c
index 693faebe4a..f1098d8172 100644
--- a/opcodes/m32r-opinst.c
+++ b/opcodes/m32r-opinst.c
@@ -751,8 +751,7 @@ static const CGEN_OPINST *m32r_cgen_opinst_table[MAX_INSNS] = {
/* Function to call before using the operand instance table. */
void
-m32r_cgen_init_opinst_table (cd)
- CGEN_CPU_DESC cd;
+m32r_cgen_init_opinst_table (CGEN_CPU_DESC cd)
{
int i;
const CGEN_OPINST **oi = & m32r_cgen_opinst_table[0];
diff --git a/opcodes/mep-opc.c b/opcodes/mep-opc.c
index 39cc13892a..2c61f8f712 100644
--- a/opcodes/mep-opc.c
+++ b/opcodes/mep-opc.c
@@ -6316,15 +6316,13 @@ static const CGEN_OPCODE mep_cgen_macro_insn_opcode_table[] =
Targets are free to override CGEN_{ASM,DIS}_HASH_P in the .opc file. */
static int
-asm_hash_insn_p (insn)
- const CGEN_INSN *insn ATTRIBUTE_UNUSED;
+asm_hash_insn_p (const CGEN_INSN *insn ATTRIBUTE_UNUSED)
{
return CGEN_ASM_HASH_P (insn);
}
static int
-dis_hash_insn_p (insn)
- const CGEN_INSN *insn;
+dis_hash_insn_p (const CGEN_INSN *insn)
{
/* If building the hash table and the NO-DIS attribute is present,
ignore. */
@@ -6356,8 +6354,7 @@ dis_hash_insn_p (insn)
Targets are free to override CGEN_{ASM,DIS}_HASH in the .opc file. */
static unsigned int
-asm_hash_insn (mnem)
- const char * mnem;
+asm_hash_insn (const char *mnem)
{
return CGEN_ASM_HASH (mnem);
}
@@ -6366,9 +6363,8 @@ asm_hash_insn (mnem)
VALUE is the first base_insn_bitsize bits as an int in host order. */
static unsigned int
-dis_hash_insn (buf, value)
- const char * buf ATTRIBUTE_UNUSED;
- CGEN_INSN_INT value ATTRIBUTE_UNUSED;
+dis_hash_insn (const char *buf ATTRIBUTE_UNUSED,
+ CGEN_INSN_INT value ATTRIBUTE_UNUSED)
{
return CGEN_DIS_HASH (buf, value);
}
diff --git a/opcodes/mt-opc.c b/opcodes/mt-opc.c
index 924b8b93bb..42a88d202a 100644
--- a/opcodes/mt-opc.c
+++ b/opcodes/mt-opc.c
@@ -813,15 +813,13 @@ static const CGEN_OPCODE mt_cgen_macro_insn_opcode_table[] =
Targets are free to override CGEN_{ASM,DIS}_HASH_P in the .opc file. */
static int
-asm_hash_insn_p (insn)
- const CGEN_INSN *insn ATTRIBUTE_UNUSED;
+asm_hash_insn_p (const CGEN_INSN *insn ATTRIBUTE_UNUSED)
{
return CGEN_ASM_HASH_P (insn);
}
static int
-dis_hash_insn_p (insn)
- const CGEN_INSN *insn;
+dis_hash_insn_p (const CGEN_INSN *insn)
{
/* If building the hash table and the NO-DIS attribute is present,
ignore. */
@@ -853,8 +851,7 @@ dis_hash_insn_p (insn)
Targets are free to override CGEN_{ASM,DIS}_HASH in the .opc file. */
static unsigned int
-asm_hash_insn (mnem)
- const char * mnem;
+asm_hash_insn (const char *mnem)
{
return CGEN_ASM_HASH (mnem);
}
@@ -863,9 +860,8 @@ asm_hash_insn (mnem)
VALUE is the first base_insn_bitsize bits as an int in host order. */
static unsigned int
-dis_hash_insn (buf, value)
- const char * buf ATTRIBUTE_UNUSED;
- CGEN_INSN_INT value ATTRIBUTE_UNUSED;
+dis_hash_insn (const char *buf ATTRIBUTE_UNUSED,
+ CGEN_INSN_INT value ATTRIBUTE_UNUSED)
{
return CGEN_DIS_HASH (buf, value);
}
diff --git a/opcodes/or1k-opc.c b/opcodes/or1k-opc.c
index 03de80675f..f8ac82615c 100644
--- a/opcodes/or1k-opc.c
+++ b/opcodes/or1k-opc.c
@@ -968,15 +968,13 @@ static const CGEN_OPCODE or1k_cgen_macro_insn_opcode_table[] =
Targets are free to override CGEN_{ASM,DIS}_HASH_P in the .opc file. */
static int
-asm_hash_insn_p (insn)
- const CGEN_INSN *insn ATTRIBUTE_UNUSED;
+asm_hash_insn_p (const CGEN_INSN *insn ATTRIBUTE_UNUSED)
{
return CGEN_ASM_HASH_P (insn);
}
static int
-dis_hash_insn_p (insn)
- const CGEN_INSN *insn;
+dis_hash_insn_p (const CGEN_INSN *insn)
{
/* If building the hash table and the NO-DIS attribute is present,
ignore. */
@@ -1008,8 +1006,7 @@ dis_hash_insn_p (insn)
Targets are free to override CGEN_{ASM,DIS}_HASH in the .opc file. */
static unsigned int
-asm_hash_insn (mnem)
- const char * mnem;
+asm_hash_insn (const char *mnem)
{
return CGEN_ASM_HASH (mnem);
}
@@ -1018,9 +1015,8 @@ asm_hash_insn (mnem)
VALUE is the first base_insn_bitsize bits as an int in host order. */
static unsigned int
-dis_hash_insn (buf, value)
- const char * buf ATTRIBUTE_UNUSED;
- CGEN_INSN_INT value ATTRIBUTE_UNUSED;
+dis_hash_insn (const char *buf ATTRIBUTE_UNUSED,
+ CGEN_INSN_INT value ATTRIBUTE_UNUSED)
{
return CGEN_DIS_HASH (buf, value);
}
diff --git a/opcodes/or1k-opinst.c b/opcodes/or1k-opinst.c
index e651527734..fd1d406849 100644
--- a/opcodes/or1k-opinst.c
+++ b/opcodes/or1k-opinst.c
@@ -579,8 +579,7 @@ static const CGEN_OPINST *or1k_cgen_opinst_table[MAX_INSNS] = {
/* Function to call before using the operand instance table. */
void
-or1k_cgen_init_opinst_table (cd)
- CGEN_CPU_DESC cd;
+or1k_cgen_init_opinst_table (CGEN_CPU_DESC cd)
{
int i;
const CGEN_OPINST **oi = & or1k_cgen_opinst_table[0];
diff --git a/opcodes/tic80-opc.c b/opcodes/tic80-opc.c
index 7b9353104a..76dcc962f8 100644
--- a/opcodes/tic80-opc.c
+++ b/opcodes/tic80-opc.c
@@ -233,9 +233,7 @@ const int tic80_num_predefined_symbols = sizeof (tic80_predefined_symbols) / siz
*/
int
-tic80_symbol_to_value (name, symbol_class)
- char *name;
- int symbol_class;
+tic80_symbol_to_value (char *name, int symbol_class)
{
const struct predefined_symbol *pdsp;
int low = 0;
@@ -275,9 +273,7 @@ tic80_symbol_to_value (name, symbol_class)
is zero, the first matching symbol is returned. */
const char *
-tic80_value_to_symbol (val, symbol_class)
- int val;
- int symbol_class;
+tic80_value_to_symbol (int val, int symbol_class)
{
const struct predefined_symbol *pdsp;
int ival;
@@ -310,8 +306,7 @@ tic80_value_to_symbol (val, symbol_class)
returns NULL. */
const struct predefined_symbol *
-tic80_next_predefined_symbol (pdsp)
- const struct predefined_symbol *pdsp;
+tic80_next_predefined_symbol (const struct predefined_symbol *pdsp)
{
if (pdsp == NULL)
{
diff --git a/opcodes/xc16x-opc.c b/opcodes/xc16x-opc.c
index 73b592d8bd..80c1082680 100644
--- a/opcodes/xc16x-opc.c
+++ b/opcodes/xc16x-opc.c
@@ -2939,15 +2939,13 @@ static const CGEN_OPCODE xc16x_cgen_macro_insn_opcode_table[] =
Targets are free to override CGEN_{ASM,DIS}_HASH_P in the .opc file. */
static int
-asm_hash_insn_p (insn)
- const CGEN_INSN *insn ATTRIBUTE_UNUSED;
+asm_hash_insn_p (const CGEN_INSN *insn ATTRIBUTE_UNUSED)
{
return CGEN_ASM_HASH_P (insn);
}
static int
-dis_hash_insn_p (insn)
- const CGEN_INSN *insn;
+dis_hash_insn_p (const CGEN_INSN *insn)
{
/* If building the hash table and the NO-DIS attribute is present,
ignore. */
@@ -2979,8 +2977,7 @@ dis_hash_insn_p (insn)
Targets are free to override CGEN_{ASM,DIS}_HASH in the .opc file. */
static unsigned int
-asm_hash_insn (mnem)
- const char * mnem;
+asm_hash_insn (const char *mnem)
{
return CGEN_ASM_HASH (mnem);
}
@@ -2989,9 +2986,8 @@ asm_hash_insn (mnem)
VALUE is the first base_insn_bitsize bits as an int in host order. */
static unsigned int
-dis_hash_insn (buf, value)
- const char * buf ATTRIBUTE_UNUSED;
- CGEN_INSN_INT value ATTRIBUTE_UNUSED;
+dis_hash_insn (const char *buf ATTRIBUTE_UNUSED,
+ CGEN_INSN_INT value ATTRIBUTE_UNUSED)
{
return CGEN_DIS_HASH (buf, value);
}
diff --git a/opcodes/xstormy16-opc.c b/opcodes/xstormy16-opc.c
index ea96b22506..a3f3545a13 100644
--- a/opcodes/xstormy16-opc.c
+++ b/opcodes/xstormy16-opc.c
@@ -1063,15 +1063,13 @@ static const CGEN_OPCODE xstormy16_cgen_macro_insn_opcode_table[] =
Targets are free to override CGEN_{ASM,DIS}_HASH_P in the .opc file. */
static int
-asm_hash_insn_p (insn)
- const CGEN_INSN *insn ATTRIBUTE_UNUSED;
+asm_hash_insn_p (const CGEN_INSN *insn ATTRIBUTE_UNUSED)
{
return CGEN_ASM_HASH_P (insn);
}
static int
-dis_hash_insn_p (insn)
- const CGEN_INSN *insn;
+dis_hash_insn_p (const CGEN_INSN *insn)
{
/* If building the hash table and the NO-DIS attribute is present,
ignore. */
@@ -1103,8 +1101,7 @@ dis_hash_insn_p (insn)
Targets are free to override CGEN_{ASM,DIS}_HASH in the .opc file. */
static unsigned int
-asm_hash_insn (mnem)
- const char * mnem;
+asm_hash_insn (const char *mnem)
{
return CGEN_ASM_HASH (mnem);
}
@@ -1113,9 +1110,8 @@ asm_hash_insn (mnem)
VALUE is the first base_insn_bitsize bits as an int in host order. */
static unsigned int
-dis_hash_insn (buf, value)
- const char * buf ATTRIBUTE_UNUSED;
- CGEN_INSN_INT value ATTRIBUTE_UNUSED;
+dis_hash_insn (const char *buf ATTRIBUTE_UNUSED,
+ CGEN_INSN_INT value ATTRIBUTE_UNUSED)
{
return CGEN_DIS_HASH (buf, value);
}