diff options
author | Matthew Green <mrg@redhat.com> | 2001-12-20 07:34:44 +0000 |
---|---|---|
committer | Matthew Green <mrg@redhat.com> | 2001-12-20 07:34:44 +0000 |
commit | 8a5886591d116320bbb2df480386abe465a7c22b (patch) | |
tree | 5eef15d9de07e911fe4b65d6f6db4f15baf197b8 /gas/config/tc-ppc.c | |
parent | cf86e6dffb6ca095462a9790ff5e711e1d485ff1 (diff) | |
download | gdb-8a5886591d116320bbb2df480386abe465a7c22b.zip gdb-8a5886591d116320bbb2df480386abe465a7c22b.tar.gz gdb-8a5886591d116320bbb2df480386abe465a7c22b.tar.bz2 |
* config/tc-ppc.c (md_parse_option): Make -maltivec default
to generating PowerPC instructions.
Diffstat (limited to 'gas/config/tc-ppc.c')
-rw-r--r-- | gas/config/tc-ppc.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/gas/config/tc-ppc.c b/gas/config/tc-ppc.c index a394408..5ece16b 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) |