X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=opcodes%2Fcgen-asm.c;h=b1675045d9d1139cb850b54657796f375d05a84d;hb=refs%2Fheads%2Fconcurrent-displaced-stepping-2020-04-01;hp=6c4f66d21100a0f81ad8c766d6fef22fbb1d3809;hpb=b90efa5b79ac1524ec260f8eb89d1be37e0219a7;p=deliverable%2Fbinutils-gdb.git diff --git a/opcodes/cgen-asm.c b/opcodes/cgen-asm.c index 6c4f66d211..b1675045d9 100644 --- a/opcodes/cgen-asm.c +++ b/opcodes/cgen-asm.c @@ -1,5 +1,5 @@ /* CGEN generic assembler support code. - Copyright (C) 1996-2015 Free Software Foundation, Inc. + Copyright (C) 1996-2020 Free Software Foundation, Inc. This file is part of libopcodes. @@ -212,7 +212,7 @@ cgen_parse_keyword (CGEN_CPU_DESC cd ATTRIBUTE_UNUSED, character of the suffix ('.') is special. */ if (*p) ++p; - + /* Allow letters, digits, and any special characters. */ while (((p - start) < (int) sizeof (buf)) && *p @@ -280,7 +280,7 @@ cgen_parse_signed_integer (CGEN_CPU_DESC cd, && value > 0 && (value & 0x80000000) && ((value >> 31) == 1)) - value |= -1 << 31; + value |= ((bfd_vma) -1) << 31; *valuep = value; }