X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=opcodes%2Farc-ext.c;h=bc676687914ab2f4833167458e67aa57d44114c5;hb=2480b6fa946bb2d2dc993b1c4a83a8e1258a75e8;hp=3cf3e2fe84ecbd95edd244d7a7f5514c86741286;hpb=2b804145796e948fa4c025c07eb201e700281e6b;p=deliverable%2Fbinutils-gdb.git diff --git a/opcodes/arc-ext.c b/opcodes/arc-ext.c index 3cf3e2fe84..bc67668791 100644 --- a/opcodes/arc-ext.c +++ b/opcodes/arc-ext.c @@ -1,5 +1,5 @@ /* ARC target-dependent stuff. Extension structure access functions - Copyright (C) 1995-2016 Free Software Foundation, Inc. + Copyright (C) 1995-2019 Free Software Foundation, Inc. This file is part of libopcodes. @@ -53,7 +53,7 @@ struct ExtAuxRegister { - long address; + unsigned address; char * name; struct ExtAuxRegister * next; }; @@ -191,8 +191,8 @@ create_map (unsigned char *block, char *aux_name = xstrdup ((char *) (p + 6)); newAuxRegister->name = aux_name; - newAuxRegister->address = (p[2] << 24) | (p[3] << 16) - | (p[4] << 8) | p[5]; + newAuxRegister->address = (((unsigned) p[2] << 24) | (p[3] << 16) + | (p[4] << 8) | p[5]); newAuxRegister->next = arc_extension_map.auxRegisters; arc_extension_map.auxRegisters = newAuxRegister; break; @@ -280,7 +280,7 @@ ExtReadWrite_image (enum ExtReadWrite val) /* Get the name of an extension instruction. */ const extInstruction_t * -arcExtMap_insn (int opcode, int insn) +arcExtMap_insn (int opcode, unsigned long long insn) { /* Here the following tasks need to be done. First of all, the opcode stored in the Extension Map is the real opcode. However, @@ -406,7 +406,7 @@ arcExtMap_condCodeName (int code) /* Get the name of an extension auxiliary register. */ const char * -arcExtMap_auxRegName (long address) +arcExtMap_auxRegName (unsigned address) { /* Walk the list of auxiliary register names and find the name. */ struct ExtAuxRegister *r; @@ -438,7 +438,7 @@ build_ARC_extmap (bfd *text_bfd) sizeof (".gnu.linkonce.arcextmap.") - 1) || !strcmp (sect->name,".arcextmap")) { - bfd_size_type count = bfd_get_section_size (sect); + bfd_size_type count = bfd_section_size (sect); unsigned char* buffer = xmalloc (count); if (buffer) @@ -463,7 +463,7 @@ dump_ARC_extmap (void) while (r) { - printf ("AUX : %s %ld\n", r->name, r->address); + printf ("AUX : %s %u\n", r->name, r->address); r = r->next; }