From: mrg Date: Thu, 20 Dec 2001 07:34:43 +0000 (+0000) Subject: * config/tc-ppc.c (md_parse_option): Make -maltivec default X-Git-Tag: cygwin_daemon_merge_HEAD~1393 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=1aeb5334ed0c9757ffc53638928faf3b4519ae9c;p=pf3gnuchains%2Fpf3gnuchains4x.git * config/tc-ppc.c (md_parse_option): Make -maltivec default to generating PowerPC instructions. --- diff --git a/gas/ChangeLog b/gas/ChangeLog index bab084cb14..dfea7813c8 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,8 @@ +2001-12-20 matthew green + + * config/tc-ppc.c (md_parse_option): Make -maltivec default + to generating PowerPC instructions. + 2001-12-20 Jason Thorpe * configure.in (mips-dec-netbsd*): Delete. diff --git a/gas/config/tc-ppc.c b/gas/config/tc-ppc.c index a394408463..5ece16b0a2 100644 --- a/gas/config/tc-ppc.c +++ b/gas/config/tc-ppc.c @@ -897,7 +897,12 @@ md_parse_option (c, arg) || strcmp (arg, "7455") == 0) ppc_cpu = PPC_OPCODE_PPC | PPC_OPCODE_ALTIVEC; else if (strcmp (arg, "altivec") == 0) - ppc_cpu |= PPC_OPCODE_ALTIVEC; + { + if (ppc_cpu == 0) + ppc_cpu = PPC_OPCODE_PPC | PPC_OPCODE_ALTIVEC; + else + ppc_cpu |= PPC_OPCODE_ALTIVEC; + } /* -mppc64 and -m620 mean to assemble for the 64-bit PowerPC 620. */ else if (strcmp (arg, "ppc64") == 0 || strcmp (arg, "620") == 0)