diff options
author | Alan Modra <amodra@gmail.com> | 2020-05-20 22:47:29 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2020-05-21 10:45:33 +0930 |
commit | d96bf37ba8360320db4d531008634b3f61af06f5 (patch) | |
tree | fb7a6fcf4bcf5dd70cc23cabdfd04c3b6c7dbb66 /opcodes/m32c-desc.c | |
parent | 5e2ab6125485bede5611187f2df4b26b04026b80 (diff) | |
download | gdb-d96bf37ba8360320db4d531008634b3f61af06f5.zip gdb-d96bf37ba8360320db4d531008634b3f61af06f5.tar.gz gdb-d96bf37ba8360320db4d531008634b3f61af06f5.tar.bz2 |
Replace "if (x) free (x)" with "free (x)", opcodes
cpu/
* mep.opc (mep_cgen_expand_macros_and_parse_operand): Replace
"if (x) free (x)" with "free (x)".
opcodes/
* arc-ext.c: Replace "if (x) free (x)" with "free (x)" throughout.
* sparc-dis.c: Likewise.
* tic4x-dis.c: Likewise.
* xtensa-dis.c: Likewise.
* bpf-desc.c: Regenerate.
* epiphany-desc.c: Regenerate.
* fr30-desc.c: Regenerate.
* frv-desc.c: Regenerate.
* ip2k-desc.c: Regenerate.
* iq2000-desc.c: Regenerate.
* lm32-desc.c: Regenerate.
* m32c-desc.c: Regenerate.
* m32r-desc.c: Regenerate.
* mep-asm.c: Regenerate.
* mep-desc.c: Regenerate.
* mt-desc.c: Regenerate.
* or1k-desc.c: Regenerate.
* xc16x-desc.c: Regenerate.
* xstormy16-desc.c: Regenerate.
Diffstat (limited to 'opcodes/m32c-desc.c')
-rw-r--r-- | opcodes/m32c-desc.c | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/opcodes/m32c-desc.c b/opcodes/m32c-desc.c index 9c4fec4..d79d2f4 100644 --- a/opcodes/m32c-desc.c +++ b/opcodes/m32c-desc.c @@ -63193,18 +63193,10 @@ m32c_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); } |