X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=gas%2Fitbl-ops.c;h=94a002d9b46f3dfe2736354e48d47665813f14a7;hb=7e6ba6a2a56e6195da36329bdeb1654e20aad198;hp=b4e5f240e86d282093e1bbbd7021f2df8d3c56a8;hpb=2b0f37619f797bf640b2d45acb615817dd202954;p=binutils-gdb.git diff --git a/gas/itbl-ops.c b/gas/itbl-ops.c index b4e5f240e86..94a002d9b46 100644 --- a/gas/itbl-ops.c +++ b/gas/itbl-ops.c @@ -1,5 +1,5 @@ /* itbl-ops.c - Copyright (C) 1997-2016 Free Software Foundation, Inc. + Copyright (C) 1997-2022 Free Software Foundation, Inc. This file is part of GAS, the GNU Assembler. @@ -132,7 +132,7 @@ struct itbl_field { struct itbl_entry { e_processor processor; /* processor number */ e_type type; /* dreg/creg/greg/insn */ - char *name; /* mnemionic name for insn/register */ + char *name; /* mnemonic name for insn/register */ unsigned long value; /* opcode/instruction mask/register number */ unsigned long flags; /* effects of the instruction */ struct itbl_range range; /* bit range within instruction for value */ @@ -272,7 +272,7 @@ itbl_init (void) for (e = *es; e; e = e->next) { symbol_table_insert (symbol_create (e->name, reg_section, - e->value, &zero_address_frag)); + &zero_address_frag, e->value)); } } append_insns_as_macros (); @@ -320,7 +320,7 @@ append_insns_as_macros (void) ASSERT (size >= 0); DBG (("I get=%d\n", size / sizeof (ITBL_OPCODES[0]))); - /* FIXME since ITBL_OPCODES culd be a static table, + /* FIXME since ITBL_OPCODES could be a static table, we can't realloc or delete the old memory. */ new_opcodes = XNEWVEC (struct ITBL_OPCODE_STRUCT, new_num_opcodes); if (!new_opcodes)