From 61eae735825714b06cae998bfb4fda996f01aa46 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Fri, 26 Jul 2002 04:23:02 +0000 Subject: [PATCH] * config/tc-ppc.c (ppc_set_cpu): Use PPC_OPCODE_64 as the default rather than PPC_OPCODE_32 for powerpc64*. --- gas/ChangeLog | 5 +++++ gas/config/tc-ppc.c | 7 ++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/gas/ChangeLog b/gas/ChangeLog index 5cdb040bb17..578b834931f 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,8 @@ +2002-07-26 Alan Modra + + * config/tc-ppc.c (ppc_set_cpu): Use PPC_OPCODE_64 as the default + rather than PPC_OPCODE_32 for powerpc64*. + 2002-07-25 Nick Clifton * po/es.po: Updated Spanish translation. diff --git a/gas/config/tc-ppc.c b/gas/config/tc-ppc.c index 68f8764bf5f..f94cad53956 100644 --- a/gas/config/tc-ppc.c +++ b/gas/config/tc-ppc.c @@ -1070,7 +1070,12 @@ ppc_set_cpu () else if (strcmp (default_cpu, "rs6000") == 0) ppc_cpu = PPC_OPCODE_POWER | PPC_OPCODE_32; else if (strncmp (default_cpu, "powerpc", 7) == 0) - ppc_cpu = PPC_OPCODE_PPC | PPC_OPCODE_32; + { + if (default_cpu[7] == '6' && default_cpu[8] == '4') + ppc_cpu = PPC_OPCODE_PPC | PPC_OPCODE_64; + else + ppc_cpu = PPC_OPCODE_PPC | PPC_OPCODE_32; + } else as_fatal (_("Unknown default cpu = %s, os = %s"), default_cpu, default_os); -- 2.47.3