aboutsummaryrefslogtreecommitdiff
path: root/gas/config
diff options
context:
space:
mode:
authorMichael Meissner <gnu@the-meissners.org>1995-10-16 10:27:49 +0000
committerMichael Meissner <gnu@the-meissners.org>1995-10-16 10:27:49 +0000
commit958e09079d71fdcb2caf46053a414e9c2af6c958 (patch)
treeb42a24b482bbf6ccd803935d82c11980b665bbb9 /gas/config
parent4c2935f4c0c865a4ab347bd0b5c131923ec41534 (diff)
downloadgdb-958e09079d71fdcb2caf46053a414e9c2af6c958.zip
gdb-958e09079d71fdcb2caf46053a414e9c2af6c958.tar.gz
gdb-958e09079d71fdcb2caf46053a414e9c2af6c958.tar.bz2
For -mcom, do not allow only POWER|PPC instructions.
Diffstat (limited to 'gas/config')
-rw-r--r--gas/config/tc-ppc.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/gas/config/tc-ppc.c b/gas/config/tc-ppc.c
index cdc0675..a6289df 100644
--- a/gas/config/tc-ppc.c
+++ b/gas/config/tc-ppc.c
@@ -583,7 +583,8 @@ md_parse_option (c, arg)
ppc_size = PPC_OPCODE_64;
}
/* -mcom means assemble for the common intersection between Power
- and PowerPC. */
+ and PowerPC. At preseent, we just allow the union, rather
+ than the intersection. */
else if (strcmp (arg, "com") == 0)
ppc_cpu = PPC_OPCODE_POWER | PPC_OPCODE_PPC;
/* -many means to assemble for any architecture (PWR/PWRX/PPC). */
@@ -742,10 +743,7 @@ md_begin ()
if ((op->flags & ppc_cpu) != 0
&& ((op->flags & (PPC_OPCODE_32 | PPC_OPCODE_64)) == 0
- || (op->flags & (PPC_OPCODE_32 | PPC_OPCODE_64)) == ppc_size)
- /* If -mcom, check for instructions not in both Power/PowerPC */
- && (ppc_cpu != (PPC_OPCODE_POWER | PPC_OPCODE_PPC)
- || (op->flags & (PPC_OPCODE_POWER | PPC_OPCODE_PPC)) == ppc_cpu))
+ || (op->flags & (PPC_OPCODE_32 | PPC_OPCODE_64)) == ppc_size))
{
const char *retval;