mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-21 01:12:32 +08:00
* h8300-dis.c: Fix printf arg warnings.
* i960-dis.c: Likewise. * mips-dis.c: Likewise. * pdp11-dis.c: Likewise. * sh-dis.c: Likewise. * v850-dis.c: Likewise. * configure.in: Formatting. * configure: Regenerate. * rl78-decode.c: Regenerate. * po/POTFILES.in: Regenerate.
This commit is contained in:
parent
3a3617baaa
commit
488916061e
@ -1,3 +1,16 @@
|
||||
2012-08-01 Alan Modra <amodra@gmail.com>
|
||||
|
||||
* h8300-dis.c: Fix printf arg warnings.
|
||||
* i960-dis.c: Likewise.
|
||||
* mips-dis.c: Likewise.
|
||||
* pdp11-dis.c: Likewise.
|
||||
* sh-dis.c: Likewise.
|
||||
* v850-dis.c: Likewise.
|
||||
* configure.in: Formatting.
|
||||
* configure: Regenerate.
|
||||
* rl78-decode.c: Regenerate.
|
||||
* po/POTFILES.in: Regenerate.
|
||||
|
||||
2012-07-31 Chao-Ying Fu <fu@mips.com>
|
||||
Catherine Moore <clm@codesourcery.com>
|
||||
Maciej W. Rozycki <macro@codesourcery.com>
|
||||
@ -6,7 +19,7 @@
|
||||
(DSP_VOLA): Likewise.
|
||||
(D32, D33): Likewise.
|
||||
(micromips_opcodes): Add DSP ASE instructions.
|
||||
* micromips-dis.c (print_insn_micromips) <'2', '3'>: New cases.
|
||||
* mips-dis.c (print_insn_micromips) <'2', '3'>: New cases.
|
||||
<'4', '5', '6', '7', '8', '0', '^', '@'>: Likewise.
|
||||
|
||||
2012-07-31 Jan Beulich <jbeulich@suse.com>
|
||||
|
4
opcodes/configure
vendored
4
opcodes/configure
vendored
@ -12464,14 +12464,14 @@ if test x${all_targets} = xfalse ; then
|
||||
bfd_i960_arch) ta="$ta i960-dis.lo" ;;
|
||||
bfd_ia64_arch) ta="$ta ia64-dis.lo ia64-opc.lo" ;;
|
||||
bfd_ip2k_arch) ta="$ta ip2k-asm.lo ip2k-desc.lo ip2k-dis.lo ip2k-ibld.lo ip2k-opc.lo" using_cgen=yes ;;
|
||||
bfd_epiphany_arch) ta="$ta epiphany-asm.lo epiphany-desc.lo epiphany-dis.lo epiphany-ibld.lo epiphany-opc.lo" using_cgen=yes ;;
|
||||
bfd_epiphany_arch) ta="$ta epiphany-asm.lo epiphany-desc.lo epiphany-dis.lo epiphany-ibld.lo epiphany-opc.lo" using_cgen=yes ;;
|
||||
bfd_iq2000_arch) ta="$ta iq2000-asm.lo iq2000-desc.lo iq2000-dis.lo iq2000-ibld.lo iq2000-opc.lo" using_cgen=yes ;;
|
||||
bfd_lm32_arch) ta="$ta lm32-asm.lo lm32-desc.lo lm32-dis.lo lm32-ibld.lo lm32-opc.lo lm32-opinst.lo" using_cgen=yes ;;
|
||||
bfd_m32c_arch) ta="$ta m32c-asm.lo m32c-desc.lo m32c-dis.lo m32c-ibld.lo m32c-opc.lo" using_cgen=yes ;;
|
||||
bfd_m32r_arch) ta="$ta m32r-asm.lo m32r-desc.lo m32r-dis.lo m32r-ibld.lo m32r-opc.lo m32r-opinst.lo" using_cgen=yes ;;
|
||||
bfd_m68hc11_arch) ta="$ta m68hc11-dis.lo m68hc11-opc.lo" ;;
|
||||
bfd_m68hc12_arch) ta="$ta m68hc11-dis.lo m68hc11-opc.lo" ;;
|
||||
bfd_m9s12x_arch) ta="$ta m68hc11-dis.lo m68hc11-opc.lo" ;;
|
||||
bfd_m9s12x_arch) ta="$ta m68hc11-dis.lo m68hc11-opc.lo" ;;
|
||||
bfd_m9s12xg_arch) ta="$ta m68hc11-dis.lo m68hc11-opc.lo" ;;
|
||||
bfd_m68k_arch) ta="$ta m68k-dis.lo m68k-opc.lo" ;;
|
||||
bfd_m88k_arch) ta="$ta m88k-dis.lo" ;;
|
||||
|
@ -253,14 +253,14 @@ if test x${all_targets} = xfalse ; then
|
||||
bfd_i960_arch) ta="$ta i960-dis.lo" ;;
|
||||
bfd_ia64_arch) ta="$ta ia64-dis.lo ia64-opc.lo" ;;
|
||||
bfd_ip2k_arch) ta="$ta ip2k-asm.lo ip2k-desc.lo ip2k-dis.lo ip2k-ibld.lo ip2k-opc.lo" using_cgen=yes ;;
|
||||
bfd_epiphany_arch) ta="$ta epiphany-asm.lo epiphany-desc.lo epiphany-dis.lo epiphany-ibld.lo epiphany-opc.lo" using_cgen=yes ;;
|
||||
bfd_epiphany_arch) ta="$ta epiphany-asm.lo epiphany-desc.lo epiphany-dis.lo epiphany-ibld.lo epiphany-opc.lo" using_cgen=yes ;;
|
||||
bfd_iq2000_arch) ta="$ta iq2000-asm.lo iq2000-desc.lo iq2000-dis.lo iq2000-ibld.lo iq2000-opc.lo" using_cgen=yes ;;
|
||||
bfd_lm32_arch) ta="$ta lm32-asm.lo lm32-desc.lo lm32-dis.lo lm32-ibld.lo lm32-opc.lo lm32-opinst.lo" using_cgen=yes ;;
|
||||
bfd_m32c_arch) ta="$ta m32c-asm.lo m32c-desc.lo m32c-dis.lo m32c-ibld.lo m32c-opc.lo" using_cgen=yes ;;
|
||||
bfd_m32r_arch) ta="$ta m32r-asm.lo m32r-desc.lo m32r-dis.lo m32r-ibld.lo m32r-opc.lo m32r-opinst.lo" using_cgen=yes ;;
|
||||
bfd_m68hc11_arch) ta="$ta m68hc11-dis.lo m68hc11-opc.lo" ;;
|
||||
bfd_m68hc12_arch) ta="$ta m68hc11-dis.lo m68hc11-opc.lo" ;;
|
||||
bfd_m9s12x_arch) ta="$ta m68hc11-dis.lo m68hc11-opc.lo" ;;
|
||||
bfd_m9s12x_arch) ta="$ta m68hc11-dis.lo m68hc11-opc.lo" ;;
|
||||
bfd_m9s12xg_arch) ta="$ta m68hc11-dis.lo m68hc11-opc.lo" ;;
|
||||
bfd_m68k_arch) ta="$ta m68k-dis.lo m68k-opc.lo" ;;
|
||||
bfd_m88k_arch) ta="$ta m88k-dis.lo" ;;
|
||||
|
@ -298,7 +298,7 @@ print_one_arg (disassemble_info *info,
|
||||
outfn (stream, "@(0x%x:%d,%s.l)", cst, cstlen, lregnames[rdisp_n]);
|
||||
|
||||
else if (x & CTRL)
|
||||
outfn (stream, cregnames[rn]);
|
||||
outfn (stream, "%s", cregnames[rn]);
|
||||
|
||||
else if ((x & MODE) == CCR)
|
||||
outfn (stream, "ccr");
|
||||
|
@ -204,7 +204,7 @@ ctrl (bfd_vma memaddr, unsigned long word1, unsigned long word2 ATTRIBUTE_UNUSED
|
||||
return;
|
||||
}
|
||||
|
||||
(*info->fprintf_func) (stream, ctrl_tab[i].name);
|
||||
(*info->fprintf_func) (stream, "%s", ctrl_tab[i].name);
|
||||
if (word1 & 2)
|
||||
/* Predicts branch not taken. */
|
||||
(*info->fprintf_func) (stream, ".f");
|
||||
@ -276,7 +276,7 @@ cobr (bfd_vma memaddr, unsigned long word1, unsigned long word2 ATTRIBUTE_UNUSED
|
||||
return;
|
||||
}
|
||||
|
||||
(*info->fprintf_func) (stream, cobr_tab[i].name);
|
||||
(*info->fprintf_func) (stream, "%s", cobr_tab[i].name);
|
||||
|
||||
/* Predicts branch not taken. */
|
||||
if (word1 & 2)
|
||||
@ -291,7 +291,7 @@ cobr (bfd_vma memaddr, unsigned long word1, unsigned long word2 ATTRIBUTE_UNUSED
|
||||
/* M1 is 1 */
|
||||
(*info->fprintf_func) (stream, "%d", src1);
|
||||
else
|
||||
(*info->fprintf_func) (stream, reg_names[src1]);
|
||||
(*info->fprintf_func) (stream, "%s", reg_names[src1]);
|
||||
|
||||
if (cobr_tab[i].numops > 1)
|
||||
{
|
||||
@ -717,7 +717,7 @@ reg (unsigned long word1)
|
||||
fp = 0;
|
||||
}
|
||||
|
||||
(*info->fprintf_func) (stream, mnemp);
|
||||
(*info->fprintf_func) (stream, "%s", mnemp);
|
||||
|
||||
s1 = (word1 >> 5) & 1;
|
||||
s2 = (word1 >> 6) & 1;
|
||||
@ -853,7 +853,7 @@ regop (int mode, int spec, int fp_reg, int fp)
|
||||
else
|
||||
{
|
||||
/* Non-FP register. */
|
||||
(*info->fprintf_func) (stream, reg_names[fp_reg]);
|
||||
(*info->fprintf_func) (stream, "%s", reg_names[fp_reg]);
|
||||
}
|
||||
}
|
||||
else
|
||||
@ -868,7 +868,7 @@ regop (int mode, int spec, int fp_reg, int fp)
|
||||
{
|
||||
/* Register. */
|
||||
if (spec == 0)
|
||||
(*info->fprintf_func) (stream, reg_names[fp_reg]);
|
||||
(*info->fprintf_func) (stream, "%s", reg_names[fp_reg]);
|
||||
else
|
||||
(*info->fprintf_func) (stream, "sf%d", fp_reg);
|
||||
}
|
||||
|
@ -2412,31 +2412,31 @@ print_insn_micromips (bfd_vma memaddr, struct disassemble_info *info)
|
||||
break;
|
||||
|
||||
case '2':
|
||||
infprintf (is, "0x%lx", GET_OP (insn, BP));
|
||||
infprintf (is, "0x%x", GET_OP (insn, BP));
|
||||
break;
|
||||
|
||||
case '3':
|
||||
infprintf (is, "0x%lx", GET_OP (insn, SA3));
|
||||
infprintf (is, "0x%x", GET_OP (insn, SA3));
|
||||
break;
|
||||
|
||||
case '4':
|
||||
infprintf (is, "0x%lx", GET_OP (insn, SA4));
|
||||
infprintf (is, "0x%x", GET_OP (insn, SA4));
|
||||
break;
|
||||
|
||||
case '5':
|
||||
infprintf (is, "0x%lx", GET_OP (insn, IMM8));
|
||||
infprintf (is, "0x%x", GET_OP (insn, IMM8));
|
||||
break;
|
||||
|
||||
case '6':
|
||||
infprintf (is, "0x%lx", GET_OP (insn, RS));
|
||||
infprintf (is, "0x%x", GET_OP (insn, RS));
|
||||
break;
|
||||
|
||||
case '7':
|
||||
infprintf (is, "$ac%ld", GET_OP (insn, DSPACC));
|
||||
infprintf (is, "$ac%d", GET_OP (insn, DSPACC));
|
||||
break;
|
||||
|
||||
case '8':
|
||||
infprintf (is, "0x%lx", GET_OP (insn, WRDSP));
|
||||
infprintf (is, "0x%x", GET_OP (insn, WRDSP));
|
||||
break;
|
||||
|
||||
case '0': /* DSP 6-bit signed immediate in bit 16. */
|
||||
@ -2453,7 +2453,7 @@ print_insn_micromips (bfd_vma memaddr, struct disassemble_info *info)
|
||||
break;
|
||||
|
||||
case '^':
|
||||
infprintf (is, "0x%lx", GET_OP (insn, RD));
|
||||
infprintf (is, "0x%x", GET_OP (insn, RD));
|
||||
break;
|
||||
|
||||
case '|':
|
||||
|
@ -214,15 +214,15 @@ print_insn_pdp11 (bfd_vma memaddr, disassemble_info *info)
|
||||
switch (OP.type)
|
||||
{
|
||||
case PDP11_OPCODE_NO_OPS:
|
||||
FPRINTF (F, OP.name);
|
||||
FPRINTF (F, "%s", OP.name);
|
||||
goto done;
|
||||
case PDP11_OPCODE_REG:
|
||||
FPRINTF (F, OP.name);
|
||||
FPRINTF (F, "%s", OP.name);
|
||||
FPRINTF (F, AFTER_INSTRUCTION);
|
||||
print_reg (dst, info);
|
||||
goto done;
|
||||
case PDP11_OPCODE_OP:
|
||||
FPRINTF (F, OP.name);
|
||||
FPRINTF (F, "%s", OP.name);
|
||||
FPRINTF (F, AFTER_INSTRUCTION);
|
||||
if (strcmp (OP.name, "jmp") == 0)
|
||||
dst |= JUMP;
|
||||
@ -230,7 +230,7 @@ print_insn_pdp11 (bfd_vma memaddr, disassemble_info *info)
|
||||
return -1;
|
||||
goto done;
|
||||
case PDP11_OPCODE_FOP:
|
||||
FPRINTF (F, OP.name);
|
||||
FPRINTF (F, "%s", OP.name);
|
||||
FPRINTF (F, AFTER_INSTRUCTION);
|
||||
if (strcmp (OP.name, "jmp") == 0)
|
||||
dst |= JUMP;
|
||||
@ -238,7 +238,7 @@ print_insn_pdp11 (bfd_vma memaddr, disassemble_info *info)
|
||||
return -1;
|
||||
goto done;
|
||||
case PDP11_OPCODE_REG_OP:
|
||||
FPRINTF (F, OP.name);
|
||||
FPRINTF (F, "%s", OP.name);
|
||||
FPRINTF (F, AFTER_INSTRUCTION);
|
||||
print_reg (src, info);
|
||||
FPRINTF (F, OPERAND_SEPARATOR);
|
||||
@ -248,7 +248,7 @@ print_insn_pdp11 (bfd_vma memaddr, disassemble_info *info)
|
||||
return -1;
|
||||
goto done;
|
||||
case PDP11_OPCODE_REG_OP_REV:
|
||||
FPRINTF (F, OP.name);
|
||||
FPRINTF (F, "%s", OP.name);
|
||||
FPRINTF (F, AFTER_INSTRUCTION);
|
||||
if (print_operand (&memaddr, dst, info) < 0)
|
||||
return -1;
|
||||
@ -258,7 +258,7 @@ print_insn_pdp11 (bfd_vma memaddr, disassemble_info *info)
|
||||
case PDP11_OPCODE_AC_FOP:
|
||||
{
|
||||
int ac = (opcode & 0xe0) >> 6;
|
||||
FPRINTF (F, OP.name);
|
||||
FPRINTF (F, "%s", OP.name);
|
||||
FPRINTF (F, AFTER_INSTRUCTION);
|
||||
print_freg (ac, info);
|
||||
FPRINTF (F, OPERAND_SEPARATOR);
|
||||
@ -269,7 +269,7 @@ print_insn_pdp11 (bfd_vma memaddr, disassemble_info *info)
|
||||
case PDP11_OPCODE_FOP_AC:
|
||||
{
|
||||
int ac = (opcode & 0xe0) >> 6;
|
||||
FPRINTF (F, OP.name);
|
||||
FPRINTF (F, "%s", OP.name);
|
||||
FPRINTF (F, AFTER_INSTRUCTION);
|
||||
if (print_foperand (&memaddr, dst, info) < 0)
|
||||
return -1;
|
||||
@ -280,7 +280,7 @@ print_insn_pdp11 (bfd_vma memaddr, disassemble_info *info)
|
||||
case PDP11_OPCODE_AC_OP:
|
||||
{
|
||||
int ac = (opcode & 0xe0) >> 6;
|
||||
FPRINTF (F, OP.name);
|
||||
FPRINTF (F, "%s", OP.name);
|
||||
FPRINTF (F, AFTER_INSTRUCTION);
|
||||
print_freg (ac, info);
|
||||
FPRINTF (F, OPERAND_SEPARATOR);
|
||||
@ -291,7 +291,7 @@ print_insn_pdp11 (bfd_vma memaddr, disassemble_info *info)
|
||||
case PDP11_OPCODE_OP_AC:
|
||||
{
|
||||
int ac = (opcode & 0xe0) >> 6;
|
||||
FPRINTF (F, OP.name);
|
||||
FPRINTF (F, "%s", OP.name);
|
||||
FPRINTF (F, AFTER_INSTRUCTION);
|
||||
if (print_operand (&memaddr, dst, info) < 0)
|
||||
return -1;
|
||||
@ -300,7 +300,7 @@ print_insn_pdp11 (bfd_vma memaddr, disassemble_info *info)
|
||||
goto done;
|
||||
}
|
||||
case PDP11_OPCODE_OP_OP:
|
||||
FPRINTF (F, OP.name);
|
||||
FPRINTF (F, "%s", OP.name);
|
||||
FPRINTF (F, AFTER_INSTRUCTION);
|
||||
if (print_operand (&memaddr, src, info) < 0)
|
||||
return -1;
|
||||
@ -312,7 +312,7 @@ print_insn_pdp11 (bfd_vma memaddr, disassemble_info *info)
|
||||
{
|
||||
int displ = (opcode & 0xff) << 8;
|
||||
bfd_vma address = memaddr + (sign_extend (displ) >> 7);
|
||||
FPRINTF (F, OP.name);
|
||||
FPRINTF (F, "%s", OP.name);
|
||||
FPRINTF (F, AFTER_INSTRUCTION);
|
||||
(*info->print_address_func) (address, info);
|
||||
goto done;
|
||||
@ -322,7 +322,7 @@ print_insn_pdp11 (bfd_vma memaddr, disassemble_info *info)
|
||||
int displ = (opcode & 0x3f) << 10;
|
||||
bfd_vma address = memaddr - (displ >> 9);
|
||||
|
||||
FPRINTF (F, OP.name);
|
||||
FPRINTF (F, "%s", OP.name);
|
||||
FPRINTF (F, AFTER_INSTRUCTION);
|
||||
print_reg (src, info);
|
||||
FPRINTF (F, OPERAND_SEPARATOR);
|
||||
@ -332,7 +332,7 @@ print_insn_pdp11 (bfd_vma memaddr, disassemble_info *info)
|
||||
case PDP11_OPCODE_IMM8:
|
||||
{
|
||||
int code = opcode & 0xff;
|
||||
FPRINTF (F, OP.name);
|
||||
FPRINTF (F, "%s", OP.name);
|
||||
FPRINTF (F, AFTER_INSTRUCTION);
|
||||
FPRINTF (F, "%o", code);
|
||||
goto done;
|
||||
@ -340,7 +340,7 @@ print_insn_pdp11 (bfd_vma memaddr, disassemble_info *info)
|
||||
case PDP11_OPCODE_IMM6:
|
||||
{
|
||||
int code = opcode & 0x3f;
|
||||
FPRINTF (F, OP.name);
|
||||
FPRINTF (F, "%s", OP.name);
|
||||
FPRINTF (F, AFTER_INSTRUCTION);
|
||||
FPRINTF (F, "%o", code);
|
||||
goto done;
|
||||
@ -348,7 +348,7 @@ print_insn_pdp11 (bfd_vma memaddr, disassemble_info *info)
|
||||
case PDP11_OPCODE_IMM3:
|
||||
{
|
||||
int code = opcode & 7;
|
||||
FPRINTF (F, OP.name);
|
||||
FPRINTF (F, "%s", OP.name);
|
||||
FPRINTF (F, AFTER_INSTRUCTION);
|
||||
FPRINTF (F, "%o", code);
|
||||
goto done;
|
||||
|
@ -203,6 +203,8 @@ xc16x-dis.c
|
||||
xc16x-ibld.c
|
||||
xc16x-opc.c
|
||||
xc16x-opc.h
|
||||
xgate-dis.c
|
||||
xgate-opc.c
|
||||
xstormy16-asm.c
|
||||
xstormy16-desc.c
|
||||
xstormy16-desc.h
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -356,10 +356,10 @@ print_insn_ppi (int field_b, struct disassemble_info *info)
|
||||
print_dsp_reg (field_b & 0xf, fprintf_fn, stream);
|
||||
break;
|
||||
case DSP_REG_X:
|
||||
fprintf_fn (stream, sx_tab[(field_b >> 6) & 3]);
|
||||
fprintf_fn (stream, "%s", sx_tab[(field_b >> 6) & 3]);
|
||||
break;
|
||||
case DSP_REG_Y:
|
||||
fprintf_fn (stream, sy_tab[(field_b >> 4) & 3]);
|
||||
fprintf_fn (stream, "%s", sy_tab[(field_b >> 4) & 3]);
|
||||
break;
|
||||
case A_MACH:
|
||||
fprintf_fn (stream, "mach");
|
||||
|
@ -406,7 +406,7 @@ disassemble (bfd_vma memaddr, struct disassemble_info *info, int bytes_read, uns
|
||||
else
|
||||
shown_one = 1;
|
||||
|
||||
info->fprintf_func (info->stream, v850_reg_names[first]);
|
||||
info->fprintf_func (info->stream, "%s", v850_reg_names[first]);
|
||||
|
||||
for (bit++; bit < 32; bit++)
|
||||
if ((mask & (1 << bit)) == 0)
|
||||
|
Loading…
Reference in New Issue
Block a user