From 958e09079d71fdcb2caf46053a414e9c2af6c958 Mon Sep 17 00:00:00 2001 From: Michael Meissner Date: Mon, 16 Oct 1995 10:27:49 +0000 Subject: [PATCH] For -mcom, do not allow only POWER|PPC instructions. --- gas/ChangeLog | 2 -- gas/config/tc-ppc.c | 8 +++----- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/gas/ChangeLog b/gas/ChangeLog index 5aedb42bbb5..50303a50aca 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -3,8 +3,6 @@ Sun Oct 15 22:06:14 1995 Michael Meissner * config/tc-ppc.c (md_parse_option): Support for -mcom to turn on common mode operation. (md_show_usage): Add -mcom to usage message. - (md_begin): If the target CPU is common mode, only allow - instructions in both architectures. Fri Oct 13 13:32:45 1995 steve chamberlain diff --git a/gas/config/tc-ppc.c b/gas/config/tc-ppc.c index cdc0675cd69..a6289dfcd68 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; -- 2.30.2