aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2000-06-16 19:11:27 +0000
committerNick Clifton <nickc@redhat.com>2000-06-16 19:11:27 +0000
commitb946ec34e64e9c8bb72e3e089061e6c9d8d4ecb2 (patch)
tree9a094a0ddb25046fd206d7409415ab16facef3f2
parent79540e267649c7708f90743663e5e844ea1faa91 (diff)
downloadgdb-b946ec34e64e9c8bb72e3e089061e6c9d8d4ecb2.zip
gdb-b946ec34e64e9c8bb72e3e089061e6c9d8d4ecb2.tar.gz
gdb-b946ec34e64e9c8bb72e3e089061e6c9d8d4ecb2.tar.bz2
Add -mcpu=rmXXXX switch.
-rw-r--r--gas/ChangeLog7
-rw-r--r--gas/config/tc-mips.c18
-rw-r--r--gas/doc/c-mips.texi6
3 files changed, 30 insertions, 1 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index 8904c37..19cd395 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,10 @@
+2000-06-16 Nick Clifton <nickc@cygnus.com>
+
+ * config/tc-mips.c (md_parse_option): Accept RM5200,RM5230,
+ RM5231, RM5261, RM5721 and RM7000 as r5000 cpu variants.
+
+ * doc/c-mips.texi: Document newly accepted cpu variants.
+
2000-06-15 Ulf Carlsson <ulfc@engr.sgi.com>
* config/tc-mips.h: Remove definition of ONLY_STANDARD_ESCAPES.
diff --git a/gas/config/tc-mips.c b/gas/config/tc-mips.c
index cdfe536..1b5c9c8 100644
--- a/gas/config/tc-mips.c
+++ b/gas/config/tc-mips.c
@@ -9041,8 +9041,24 @@ md_parse_option (c, arg)
if (strcmp (p, "orion") == 0)
mips_cpu = 4600;
break;
- }
+ case 'm':
+ case 'M':
+ switch (atoi (p + 1))
+ {
+ case 5200:
+ case 5230:
+ case 5231:
+ case 5261:
+ case 5721:
+ case 7000:
+ mips_cpu = 5000;
+ break;
+ default:
+ break;
+ }
+ }
+
if (sv
&& (mips_cpu != 4300
&& mips_cpu != 4100
diff --git a/gas/doc/c-mips.texi b/gas/doc/c-mips.texi
index 26940de..fe802a9 100644
--- a/gas/doc/c-mips.texi
+++ b/gas/doc/c-mips.texi
@@ -132,7 +132,13 @@ understood. Valid @var{cpu} value are:
4600,
4650,
5000,
+rm5200,
+rm5230,
+rm5231,
+rm5261,
+rm5721,
6000,
+rm7000,
8000,
10000
@end quotation