Fix xtensa "clobbered by longjmp" warnings
authorAlan Modra <amodra@gmail.com>
Wed, 6 Jun 2018 06:00:35 +0000 (15:30 +0930)
committerAlan Modra <amodra@gmail.com>
Wed, 6 Jun 2018 12:00:36 +0000 (21:30 +0930)
commitce72cd46ec611fe6440053f282b1b6cb7e977ff6
treeba2502d4fde47944ead5885f0b43a1d730f6f162
parent773ff7907c05313aebbcd5e8319e5b869ac4f792
Fix xtensa "clobbered by longjmp" warnings

.../opcodes/xtensa-dis.c: In function ‘print_insn_xtensa’:
.../opcodes/xtensa-dis.c:257:17: error: variable ‘fmt’ might be clobbered by ‘longjmp’ or ‘vfork’ [-Werror=clobbered]
   xtensa_format fmt;
                 ^~~
.../opcodes/xtensa-dis.c:262:26: error: variable ‘valid_insn’ might be clobbered by ‘longjmp’ or ‘vfork’ [-Werror=clobbered]
   int first, first_slot, valid_insn = 0;
                          ^~~~~~~~~~

* xtensa-dis.c (print_insn_xtensa): Init fmt and valid_insn after
setjmp.  Move init for some other vars later too.
opcodes/ChangeLog
opcodes/xtensa-dis.c