ppc: misc minor build corrections
authorJan Beulich <jbeulich@suse.com>
Mon, 23 Dec 2019 10:53:10 +0000 (11:53 +0100)
committerJan Beulich <jbeulich@suse.com>
Mon, 23 Dec 2019 10:53:10 +0000 (11:53 +0100)
Avoid shadowing a libiberty symbol (which oldish gcc warns about by
default), and allow building cleanly on 32-bit distros.

opcodes/ChangeLog
opcodes/ppc-dis.c
opcodes/ppc-opc.c

index a374397b8b4e3f31dcaba7a44fccd01f258ff7d6..979ca97b4b164046178ce4bd87db3ca4e09940fd 100644 (file)
@@ -1,3 +1,9 @@
+2019-12-23  Jan Beulich  <jbeulich@suse.com>
+
+       * ppc-dis.c (print_insn_powerpc): Rename local variable "spaces"
+       to "blanks".
+       * ppc-opc.c (D34, SI34, NSI34): Use UINT64_C().
+
 2019-12-23  Alan Modra  <amodra@gmail.com>
 
        * score-dis.c (print_insn_score32): Avoid signed overflow.
index 9add60272a5172fad9f44c28451bce6aa3d349da..7add08d1566a017aa311fdeb35899eaca9d2fccd 100644 (file)
@@ -824,16 +824,16 @@ print_insn_powerpc (bfd_vma memaddr,
        need_paren
       } op_separator;
       bfd_boolean skip_optional;
-      int spaces;
+      int blanks;
 
       (*info->fprintf_func) (info->stream, "%s", opcode->name);
       /* gdb fprintf_func doesn't return count printed.  */
-      spaces = 8 - strlen (opcode->name);
-      if (spaces <= 0)
-       spaces = 1;
+      blanks = 8 - strlen (opcode->name);
+      if (blanks <= 0)
+       blanks = 1;
 
       /* Now extract and print the operands.  */
-      op_separator = spaces;
+      op_separator = blanks;
       skip_optional = FALSE;
       for (opindex = opcode->operands; *opindex != 0; opindex++)
        {
index 403c9daff53bcfa33bf8ebffcf0afe8bd4f1439a..8dbe7b6abd9b03315837d3577d5dd6fc9a737f7f 100644 (file)
@@ -2147,17 +2147,17 @@ const struct powerpc_operand powerpc_operands[] =
      off a register, and implies that the next operand is a register in
      parentheses.  */
 #define D34 DS + 1
-  { 0x3ffffffff, PPC_OPSHIFT_INV, insert_d34, extract_d34,
+  { UINT64_C(0x3ffffffff), PPC_OPSHIFT_INV, insert_d34, extract_d34,
     PPC_OPERAND_PARENS | PPC_OPERAND_SIGNED },
 
   /* The SI field in an 8-byte D form prefix instruction.  */
 #define SI34 D34 + 1
-  { 0x3ffffffff, PPC_OPSHIFT_INV, insert_d34, extract_d34, PPC_OPERAND_SIGNED },
+  { UINT64_C(0x3ffffffff), PPC_OPSHIFT_INV, insert_d34, extract_d34, PPC_OPERAND_SIGNED },
 
   /* The NSI field in an 8-byte D form prefix instruction.  This is the
      same as the SI34 field, only negated.  */
 #define NSI34 SI34 + 1
-  { 0x3ffffffff, PPC_OPSHIFT_INV, insert_nsi34, extract_nsi34,
+  { UINT64_C(0x3ffffffff), PPC_OPSHIFT_INV, insert_nsi34, extract_nsi34,
     PPC_OPERAND_NEGATIVE | PPC_OPERAND_SIGNED },
 
   /* The DUIS or BHRBE fields in a XFX form instruction, 10 bits
This page took 0.029415 seconds and 4 git commands to generate.