Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. =================================================================== RCS file: /ftp/cvs/cvsroot/src/external/gpl3/binutils/dist/opcodes/mt-desc.c,v rcsdiff: /ftp/cvs/cvsroot/src/external/gpl3/binutils/dist/opcodes/mt-desc.c,v: warning: Unknown phrases like `commitid ...;' are present. retrieving revision 1.1.1.7 retrieving revision 1.1.1.8 diff -u -p -r1.1.1.7 -r1.1.1.8 --- src/external/gpl3/binutils/dist/opcodes/mt-desc.c 2020/04/03 23:39:46 1.1.1.7 +++ src/external/gpl3/binutils/dist/opcodes/mt-desc.c 2022/12/23 19:00:55 1.1.1.8 @@ -3,7 +3,7 @@ THIS FILE IS MACHINE GENERATED WITH CGEN. -Copyright (C) 1996-2020 Free Software Foundation, Inc. +Copyright (C) 1996-2022 Free Software Foundation, Inc. This file is part of the GNU Binutils and/or GDB, the GNU debugger. @@ -26,6 +26,7 @@ This file is part of the GNU Binutils an #include "sysdep.h" #include #include +#include #include "ansidecl.h" #include "bfd.h" #include "symcat.h" @@ -196,7 +197,7 @@ const CGEN_HW_ENTRY mt_cgen_hw_table[] = { "h-uint", HW_H_UINT, CGEN_ASM_NONE, 0, { 0, { { { (1<isas = cgen_bitset_copy (isas); cd->machs = machs; cd->endian = endian; - /* FIXME: for the sparc case we can determine insn-endianness statically. - The worry here is where both data and insn endian can be independently - chosen, in which case this function will need another argument. - Actually, will want to allow for more arguments in the future anyway. */ - cd->insn_endian = endian; + cd->insn_endian + = (insn_endian == CGEN_ENDIAN_UNKNOWN ? endian : insn_endian); /* Table (re)builder. */ cd->rebuild_tables = mt_cgen_rebuild_tables; @@ -1306,18 +1309,10 @@ mt_cgen_cpu_close (CGEN_CPU_DESC cd) regfree (CGEN_INSN_RX (insns)); } - if (cd->macro_insn_table.init_entries) - free ((CGEN_INSN *) cd->macro_insn_table.init_entries); - - if (cd->insn_table.init_entries) - free ((CGEN_INSN *) cd->insn_table.init_entries); - - if (cd->hw_table.entries) - free ((CGEN_HW_ENTRY *) cd->hw_table.entries); - - if (cd->operand_table.entries) - free ((CGEN_HW_ENTRY *) cd->operand_table.entries); - + free ((CGEN_INSN *) cd->macro_insn_table.init_entries); + free ((CGEN_INSN *) cd->insn_table.init_entries); + free ((CGEN_HW_ENTRY *) cd->hw_table.entries); + free ((CGEN_HW_ENTRY *) cd->operand_table.entries); free (cd); }