aboutsummaryrefslogtreecommitdiff
path: root/binutils/ChangeLog
diff options
context:
space:
mode:
authorAnton Kolesov <Anton.Kolesov@synopsys.com>2017-06-15 15:58:32 +0300
committerAnton Kolesov <Anton.Kolesov@synopsys.com>2017-06-29 14:49:39 +0300
commite1e94c4994151ebe0e3a103fd0d27f60bd806bbe (patch)
tree59c0f13136fbf882c5be12ad11a828bdbba3087f /binutils/ChangeLog
parentadc764e7d217d3e56af988ce20cedc98d8c4cc73 (diff)
[ARC] Fix handling of cpu=... disassembler option value
There is a bug in handling of cpu=... disassembler option in case there are other options after it, for example, `cpu=EM,dsp'. In this case `EM,dsp' is treated as an option value, and strcasecmp reports is as non-equal to "EM". This is fixed by using disassembler_options_cmp function, which compares string treating `,' the same way as `\0'. This function also solves a problem with option order in parse_option. Previously, if several option had same prefix (e.g. fpud, fpuda), then the longer one should have been compared first, otherwise when longer option is passed it would be treated as a short one, because CONST_STRNEQ ("fpud", "fpuda") would be true. The order of options was correct for ARC, so there were no bugs per se, but with disassembler_option_cmp there is no risk of such a bug being introduced in the future. opcodes/ChangeLog: yyyy-mm-dd Anton Kolesov <Anton.Kolesov@synopsys.com> * arc-dis.c (parse_option): Use disassembler_options_cmp to compare disassembler option strings. (parse_cpu_option): Likewise. binutils/ChangeLog yyyy-mm-dd Anton Kolesov <Anton.Kolesov@synopsys.com> * testsuite/binutils-all/arc/double_store.s: New file. * testsuite/binutils-all/arc/objdump.exp: Tests for disassembler options. (do_objfile): New function. (check_assembly): Likewise.
Diffstat (limited to 'binutils/ChangeLog')
-rw-r--r--binutils/ChangeLog8
1 files changed, 8 insertions, 0 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog
index 14cfcffc8e..d8577b0af3 100644
--- a/binutils/ChangeLog
+++ b/binutils/ChangeLog
@@ -1,3 +1,11 @@
+2017-06-29 Anton Kolesov <Anton.Kolesov@synopsys.com>
+
+ * testsuite/binutils-all/arc/double_store.s: New file.
+ * testsuite/binutils-all/arc/objdump.exp: Tests for disassembler
+ options.
+ (do_objfile): New function.
+ (check_assembly): Likewise.
+
2017-06-29 Andreas Arnez <arnez@linux.vnet.ibm.com>
* readelf.c (get_note_type): Add NT_S390_GS_CB and NT_S390_GS_BC.