summaryrefslogtreecommitdiff
path: root/opcodes
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2013-04-10 19:16:45 +0000
committerJan Kratochvil <jan.kratochvil@redhat.com>2013-04-10 19:16:45 +0000
commit6d640e771fac60411e008e238769d7d41cfc960c (patch)
treece2bcbf0d1457544e6bac9cd10a9566d109fa37a /opcodes
parent0a1df36fccb14d8ea5370ef30ba5e1251f7dba06 (diff)
downloadgdb-6d640e771fac60411e008e238769d7d41cfc960c.tar.gz
opcodes/
* rl78-dis.c (print_insn_rl78): Use alternative form as a GCC false warning workaround.
Diffstat (limited to 'opcodes')
-rw-r--r--opcodes/ChangeLog5
-rw-r--r--opcodes/rl78-dis.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog
index 5509f8d0b57..b463d6f83cf 100644
--- a/opcodes/ChangeLog
+++ b/opcodes/ChangeLog
@@ -1,3 +1,8 @@
+2013-04-10 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * rl78-dis.c (print_insn_rl78): Use alternative form as a GCC false
+ warning workaround.
+
2013-04-08 Jan Beulich <jbeulich@suse.com>
* i386-opc.tbl: Fold 64-bit and non-64-bit jecxz entries.
diff --git a/opcodes/rl78-dis.c b/opcodes/rl78-dis.c
index 1ceee8d2e03..7d1eab4e316 100644
--- a/opcodes/rl78-dis.c
+++ b/opcodes/rl78-dis.c
@@ -217,7 +217,7 @@ print_insn_rl78 (bfd_vma addr, disassemble_info * dis)
case '0':
case '1':
- oper = opcode.op + *s - '0';
+ oper = *s == '0' ? &opcode.op[0] : &opcode.op[1];
if (do_es)
{
if (oper->use_es && indirect_type (oper->type))