From: Jan Kratochvil Date: Wed, 10 Apr 2013 19:16:45 +0000 (+0000) Subject: opcodes/ X-Git-Tag: cygwin-64bit-premerge~134 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=731df338c0275d27878a67caf9504eabc831c68e;p=external%2Fbinutils.git opcodes/ * rl78-dis.c (print_insn_rl78): Use alternative form as a GCC false warning workaround. --- diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog index 5509f8d..b463d6f 100644 --- a/opcodes/ChangeLog +++ b/opcodes/ChangeLog @@ -1,3 +1,8 @@ +2013-04-10 Jan Kratochvil + + * rl78-dis.c (print_insn_rl78): Use alternative form as a GCC false + warning workaround. + 2013-04-08 Jan Beulich * 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 1ceee8d..7d1eab4 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))