X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=opcodes%2Fmmix-dis.c;h=4bbc6a62146f164a402ddb11fcc7b3e316b34c9f;hb=c4b943d7aed5edbfc31aa1e9dc9e7bcf108d76a0;hp=9ca845f6e6375fe167110d44449f656eebd81d22;hpb=aa820537ead0135a7c38c619039dce8a6fc74ed1;p=deliverable%2Fbinutils-gdb.git diff --git a/opcodes/mmix-dis.c b/opcodes/mmix-dis.c index 9ca845f6e6..4bbc6a6214 100644 --- a/opcodes/mmix-dis.c +++ b/opcodes/mmix-dis.c @@ -1,5 +1,5 @@ /* mmix-dis.c -- Disassemble MMIX instructions. - Copyright 2000, 2001, 2002, 2005, 2007 Free Software Foundation, Inc. + Copyright (C) 2000-2016 Free Software Foundation, Inc. Written by Hans-Peter Nilsson (hp@bitrange.com) This file is part of the GNU opcodes library. @@ -19,9 +19,8 @@ Software Foundation, 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. */ +#include "sysdep.h" #include -#include -#include #include "opcode/mmix.h" #include "dis-asm.h" #include "libiberty.h" @@ -73,7 +72,7 @@ static bfd_boolean initialize_mmix_dis_info (struct disassemble_info *info) { struct mmix_dis_info *minfop = malloc (sizeof (struct mmix_dis_info)); - int i; + long i; if (minfop == NULL) return FALSE; @@ -98,7 +97,6 @@ initialize_mmix_dis_info (struct disassemble_info *info) long symsize = bfd_get_symtab_upper_bound (abfd); asymbol **syms = malloc (symsize); long nsyms; - long i; if (syms == NULL) { @@ -125,7 +123,7 @@ initialize_mmix_dis_info (struct disassemble_info *info) for (i = 0; i < 256; i++) if (minfop->reg_name[i] == NULL) { - sprintf (minfop->basic_reg_name[i], "$%d", i); + sprintf (minfop->basic_reg_name[i], "$%ld", i); minfop->reg_name[i] = minfop->basic_reg_name[i]; }