opcodes/
authorJan Kratochvil <jan.kratochvil@redhat.com>
Wed, 10 Apr 2013 19:16:45 +0000 (19:16 +0000)
committerJan Kratochvil <jan.kratochvil@redhat.com>
Wed, 10 Apr 2013 19:16:45 +0000 (19:16 +0000)
* rl78-dis.c (print_insn_rl78): Use alternative form as a GCC false
warning workaround.

opcodes/ChangeLog
opcodes/rl78-dis.c

index 5509f8d0b57efa7ceb0d0e3f197f9baec415b7fc..b463d6f83cf03423f58bbf6b4a8bb1022a535bf6 100644 (file)
@@ -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.
index 1ceee8d2e033e2c58a9bb113e40faf7c7c7718da..7d1eab4e31665e75322ee23957f57147bc575c51 100644 (file)
@@ -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))
This page took 0.035391 seconds and 4 git commands to generate.