This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[PATCH 2/2] gas/arc: Make .cpu directive case-insensitive
- From: Andrew Burgess <andrew dot burgess at embecosm dot com>
- To: binutils at sourceware dot org
- Cc: Claudiu dot Zissulescu at synopsys dot com, Cupertino dot Miranda at synopsys dot com, Andrew Burgess <andrew dot burgess at embecosm dot com>
- Date: Sat, 16 Apr 2016 17:01:55 +0100
- Subject: [PATCH 2/2] gas/arc: Make .cpu directive case-insensitive
- Authentication-results: sourceware.org; auth=none
- References: <cover dot 1460822027 dot git dot andrew dot burgess at embecosm dot com>
- References: <cover dot 1460822027 dot git dot andrew dot burgess at embecosm dot com>
gas/ChangeLog:
* config/tc-arc.c (arc_option): Make .cpu directive
case-insensitive.
---
gas/ChangeLog | 5 +++++
gas/config/tc-arc.c | 16 ++++++++--------
2 files changed, 13 insertions(+), 8 deletions(-)
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");
}
--
2.6.4