X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=opcodes%2Ffr30-opc.c;h=e1167d962bf20b58521bf07c2492859a62f54973;hb=c2274b2767dba3175e585bd17f9f4a93b56cdc63;hp=4d0ab6a767cafe0e2d59d8c124b8f11ed0c9a185;hpb=060d22b0d0cbc7786f83c236ed9812343530dc80;p=deliverable%2Fbinutils-gdb.git diff --git a/opcodes/fr30-opc.c b/opcodes/fr30-opc.c index 4d0ab6a767..e1167d962b 100644 --- a/opcodes/fr30-opc.c +++ b/opcodes/fr30-opc.c @@ -1284,7 +1284,7 @@ static const CGEN_OPCODE fr30_cgen_macro_insn_opcode_table[] = static int asm_hash_insn_p (insn) - const CGEN_INSN *insn; + const CGEN_INSN *insn ATTRIBUTE_UNUSED; { return CGEN_ASM_HASH_P (insn); } @@ -1334,12 +1334,14 @@ asm_hash_insn (mnem) static unsigned int dis_hash_insn (buf, value) - const char * buf; - CGEN_INSN_INT value; + const char * buf ATTRIBUTE_UNUSED; + CGEN_INSN_INT value ATTRIBUTE_UNUSED; { return CGEN_DIS_HASH (buf, value); } +static void set_fields_bitsize PARAMS ((CGEN_FIELDS *, int)); + /* Set the recorded length of the insn in the CGEN_FIELDS struct. */ static void @@ -1368,6 +1370,7 @@ fr30_cgen_init_opcode_table (cd) { insns[i].base = &ib[i]; insns[i].opcode = &oc[i]; + fr30_cgen_build_insn_regex (& insns[i]); } cd->macro_insn_table.init_entries = insns; cd->macro_insn_table.entry_size = sizeof (CGEN_IBASE); @@ -1376,7 +1379,10 @@ fr30_cgen_init_opcode_table (cd) oc = & fr30_cgen_insn_opcode_table[0]; insns = (CGEN_INSN *) cd->insn_table.init_entries; for (i = 0; i < MAX_INSNS; ++i) - insns[i].opcode = &oc[i]; + { + insns[i].opcode = &oc[i]; + fr30_cgen_build_insn_regex (& insns[i]); + } cd->sizeof_fields = sizeof (CGEN_FIELDS); cd->set_fields_bitsize = set_fields_bitsize;