]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
gas/:
authorAndreas Schwab <schwab@linux-m68k.org>
Sat, 3 Jul 2010 08:27:23 +0000 (08:27 +0000)
committerAndreas Schwab <schwab@linux-m68k.org>
Sat, 3 Jul 2010 08:27:23 +0000 (08:27 +0000)
* config/tc-ppc.c (ppc_set_cpu): Cast PPC_OPCODE_xxx to ppc_cpu_t
before inverting.

binutils/:
* ppc-dis.c (powerpc_init_dialect): Cast PPC_OPCODE_xxx to
ppc_cpu_t before inverting.

gas/ChangeLog
gas/config/tc-ppc.c
opcodes/ChangeLog
opcodes/ppc-dis.c

index 1a666868cc2590175a8b213c78a1a5ca83cef90d..86b3c35a4d918163bad3bee8ed74b510c3fb6903 100644 (file)
@@ -1,3 +1,8 @@
+2010-07-03  Andreas Schwab  <schwab@linux-m68k.org>
+
+       * config/tc-ppc.c (ppc_set_cpu): Cast PPC_OPCODE_xxx to ppc_cpu_t
+       before inverting.
+
 2010-07-03  Alan Modra  <amodra@gmail.com>
 
        * config/tc-ppc.c (ppc_set_cpu): Remove old opcode flags.
index df298dbb2e8c877d0c61df068464426332da19e3..1321cd446265c307c54467f49412f7675c32a5cd 100644 (file)
@@ -1248,7 +1248,7 @@ ppc_set_cpu (void)
   const char *default_os  = TARGET_OS;
   const char *default_cpu = TARGET_CPU;
 
-  if ((ppc_cpu & ~PPC_OPCODE_ANY) == 0)
+  if ((ppc_cpu & ~(ppc_cpu_t) PPC_OPCODE_ANY) == 0)
     {
       if (ppc_obj64)
        ppc_cpu |= PPC_OPCODE_PPC | PPC_OPCODE_64;
index 1962aebd7cd3d7172a622797a34940bb09a7f9e2..8b5b6a4c8441ef578d1c46e3e804e65bb2181f26 100644 (file)
@@ -1,3 +1,8 @@
+2010-07-03  Andreas Schwab  <schwab@linux-m68k.org>
+
+       * ppc-dis.c (powerpc_init_dialect): Cast PPC_OPCODE_xxx to
+       ppc_cpu_t before inverting.
+
 2010-07-03  Alan Modra  <amodra@gmail.com>
 
        * ppc-dis.c (ppc_opts, powerpc_init_dialect): Remove old opcode flags.
index 9170e98a322d0d2bba62accbe1edf0e4fcb95ad4..8771f95b15b6f89e109064238ec19c988d307fba 100644 (file)
@@ -189,8 +189,8 @@ ppc_parse_cpu (ppc_cpu_t ppc_cpu, const char *arg)
        if (ppc_opts[i].sticky)
          {
            retain_flags |= ppc_opts[i].sticky;
-           if ((ppc_cpu & ~(PPC_OPCODE_ALTIVEC | PPC_OPCODE_VSX
-                            | PPC_OPCODE_SPE | PPC_OPCODE_ANY)) != 0)
+           if ((ppc_cpu & ~(ppc_cpu_t) (PPC_OPCODE_ALTIVEC | PPC_OPCODE_VSX
+                                        | PPC_OPCODE_SPE | PPC_OPCODE_ANY)) != 0)
              break;
          }
        ppc_cpu = ppc_opts[i].cpu;
@@ -227,7 +227,7 @@ powerpc_init_dialect (struct disassemble_info *info)
       if ((new_cpu = ppc_parse_cpu (dialect, arg)) != 0)
        dialect = new_cpu;
       else if (strcmp (arg, "32") == 0)
-       dialect &= ~PPC_OPCODE_64;
+       dialect &= ~(ppc_cpu_t) PPC_OPCODE_64;
       else if (strcmp (arg, "64") == 0)
        dialect |= PPC_OPCODE_64;
       else
@@ -238,12 +238,12 @@ powerpc_init_dialect (struct disassemble_info *info)
       arg = end;
     }
 
-  if ((dialect & ~PPC_OPCODE_64) == 0)
+  if ((dialect & ~(ppc_cpu_t) PPC_OPCODE_64) == 0)
     {
       if (info->mach == bfd_mach_ppc64)
        dialect |= PPC_OPCODE_64;
       else
-       dialect &= ~PPC_OPCODE_64;
+       dialect &= ~(ppc_cpu_t) PPC_OPCODE_64;
       /* Choose a reasonable default.  */
       dialect |= (PPC_OPCODE_PPC | PPC_OPCODE_COMMON | PPC_OPCODE_601
                  | PPC_OPCODE_ALTIVEC);
@@ -505,7 +505,7 @@ print_insn_powerpc (bfd_vma memaddr,
 
   if ((dialect & PPC_OPCODE_ANY) != 0)
     {
-      dialect = ~PPC_OPCODE_ANY;
+      dialect = ~(ppc_cpu_t) PPC_OPCODE_ANY;
       goto again;
     }