gas/arc: Make .cpu directive case-insensitive
authorAndrew Burgess <andrew.burgess@embecosm.com>
Sat, 16 Apr 2016 15:21:32 +0000 (16:21 +0100)
committerAndrew Burgess <andrew.burgess@embecosm.com>
Sat, 16 Apr 2016 15:21:32 +0000 (16:21 +0100)
gas/ChangeLog:

* config/tc-arc.c (arc_option): Make .cpu directive
case-insensitive.

gas/ChangeLog
gas/config/tc-arc.c

index 47651013f81d9b5f86f880ba43463854368d5f92..df4cbfbe0c741e45ac181aa2b0327342a464143c 100644 (file)
@@ -1,3 +1,8 @@
+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.
index 169b05c348f5f1a00bdc84bdcbaaed5de7c9a1eb..4f4e970400ef0e021033f6ef0e1c5ebd487fff1b 100644 (file)
@@ -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");
        }
This page took 0.032123 seconds and 4 git commands to generate.