aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorAndrew Burgess <andrew.burgess@embecosm.com>2016-04-16 16:21:32 +0100
committerAndrew Burgess <andrew.burgess@embecosm.com>2016-04-16 16:21:32 +0100
commit9a452709fe126ea6da23a53426362e4435d2dc06 (patch)
tree478f16b26774f1e72261077d7ebf48f788c61cea /gas
parent5e001f26addc4443eb0a7af90ad67117e1a582ac (diff)
downloadgdb-9a452709fe126ea6da23a53426362e4435d2dc06.zip
gdb-9a452709fe126ea6da23a53426362e4435d2dc06.tar.gz
gdb-9a452709fe126ea6da23a53426362e4435d2dc06.tar.bz2
gas/arc: Make .cpu directive case-insensitive
gas/ChangeLog: * config/tc-arc.c (arc_option): Make .cpu directive case-insensitive.
Diffstat (limited to 'gas')
-rw-r--r--gas/ChangeLog5
-rw-r--r--gas/config/tc-arc.c16
2 files changed, 13 insertions, 8 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index 4765101..df4cbfb 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,5 +1,10 @@
2016-04-16 Andrew Burgess <andrew.burgess@embecosm.com>
+ * config/tc-arc.c (arc_option): Make .cpu directive
+ case-insensitive.
+
+2016-04-16 Andrew Burgess <andrew.burgess@embecosm.com>
+
* config/tc-arc.c (arc_option): Allow NPS400 in .cpu directive.
2016-04-15 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
diff --git a/gas/config/tc-arc.c b/gas/config/tc-arc.c
index 169b05c..4f4e970 100644
--- a/gas/config/tc-arc.c
+++ b/gas/config/tc-arc.c
@@ -878,26 +878,26 @@ arc_option (int ignore ATTRIBUTE_UNUSED)
if (!mach_type_specified_p)
{
- if ((!strcmp ("ARC600", cpu))
- || (!strcmp ("ARC601", cpu))
- || (!strcmp ("A6", cpu)))
+ if ((!strcasecmp ("ARC600", cpu))
+ || (!strcasecmp ("ARC601", cpu))
+ || (!strcasecmp ("A6", cpu)))
{
md_parse_option (OPTION_MCPU, "arc600");
}
- else if ((!strcmp ("ARC700", cpu))
- || (!strcmp ("A7", cpu)))
+ else if ((!strcasecmp ("ARC700", cpu))
+ || (!strcasecmp ("A7", cpu)))
{
md_parse_option (OPTION_MCPU, "arc700");
}
- else if (!strcmp ("EM", cpu))
+ else if (!strcasecmp ("EM", cpu))
{
md_parse_option (OPTION_MCPU, "arcem");
}
- else if (!strcmp ("HS", cpu))
+ else if (!strcasecmp ("HS", cpu))
{
md_parse_option (OPTION_MCPU, "archs");
}
- else if (!strcmp ("NPS400", cpu))
+ else if (!strcasecmp ("NPS400", cpu))
{
md_parse_option (OPTION_MCPU, "nps400");
}