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 /cpu | |
parent | 5e2ab6125485bede5611187f2df4b26b04026b80 (diff) | |
download | binutils-d96bf37ba8360320db4d531008634b3f61af06f5.zip binutils-d96bf37ba8360320db4d531008634b3f61af06f5.tar.gz binutils-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 'cpu')
-rw-r--r-- | cpu/ChangeLog | 5 | ||||
-rw-r--r-- | cpu/mep.opc | 3 |
2 files changed, 6 insertions, 2 deletions
diff --git a/cpu/ChangeLog b/cpu/ChangeLog index ef6d49a..f791c00 100644 --- a/cpu/ChangeLog +++ b/cpu/ChangeLog @@ -1,3 +1,8 @@ +2020-05-21 Alan Modra <amodra@gmail.com> + + * mep.opc (mep_cgen_expand_macros_and_parse_operand): Replace + "if (x) free (x)" with "free (x)". + 2020-05-19 Stafford Horne <shorne@gmail.com> PR 25184 diff --git a/cpu/mep.opc b/cpu/mep.opc index 7ed3ea8..34e279d 100644 --- a/cpu/mep.opc +++ b/cpu/mep.opc @@ -855,8 +855,7 @@ mep_cgen_expand_macros_and_parse_operand (CGEN_CPU_DESC cd, int opindex, *strp_in += (str - hold); } - if (hold) - free (hold); + free (hold); return errmsg; } |