aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@linux-m68k.org>2010-07-03 08:27:23 +0000
committerAndreas Schwab <schwab@linux-m68k.org>2010-07-03 08:27:23 +0000
commit7102e95e494350cc1df80b4163e6f0a20537315e (patch)
tree3512f932c3cef29a36be5e81b6a1d56c98ac0ab6 /gas
parentbdc70b4a03fd884e60bfef2cc2fa7b864f51d6fe (diff)
downloadgdb-7102e95e494350cc1df80b4163e6f0a20537315e.zip
gdb-7102e95e494350cc1df80b4163e6f0a20537315e.tar.gz
gdb-7102e95e494350cc1df80b4163e6f0a20537315e.tar.bz2
gas/:
* 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.
Diffstat (limited to 'gas')
-rw-r--r--gas/ChangeLog5
-rw-r--r--gas/config/tc-ppc.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index 1a66686..86b3c35 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -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.
diff --git a/gas/config/tc-ppc.c b/gas/config/tc-ppc.c
index df298db..1321cd4 100644
--- a/gas/config/tc-ppc.c
+++ b/gas/config/tc-ppc.c
@@ -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;