gas/arc: Allow greater range of characters into flag names
authorAndrew Burgess <andrew.burgess@embecosm.com>
Mon, 28 Mar 2016 21:51:12 +0000 (22:51 +0100)
committerAndrew Burgess <andrew.burgess@embecosm.com>
Thu, 7 Apr 2016 11:42:58 +0000 (12:42 +0100)
An upcoming commit will add a new arc instruction flag that uses
characters that have never appeared in an arc instruction flag before.
Currently the assembler is very conservative about which characters can
or cannot appear in an instruction flag.

This commit relaxes these constraints a little.  After this commit all
alpha-numeric characters are now allowed into instruction flags.  This
complete set is not required for the upcoming change, however, having
this slightly larger set does not impact the assemblers ability to
correctly parse input, but does make it easier to add new flag to the
instruction table.

gas/ChangeLog:

* config/tc-arc.c (tokenize_flags): Allow greater range of
characters into flag names.

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

index 830afa5c781a7da093bd3e95b806a93d55f3c450..0126fb81f77295630788df08bbe6388eea85c74e 100644 (file)
@@ -1,3 +1,8 @@
+2016-04-07  Andrew Burgess  <andrew.burgess@embecosm.com>
+
+       * config/tc-arc.c (tokenize_flags): Allow greater range of
+       characters into flag names.
+
 2016-04-07  Andrew Burgess  <andrew.burgess@embecosm.com>
 
        * config/tc-arc.c (find_opcode_match): Handle O_symbol case, add
index 04ccd07d1206d60077e373a29ef4f6cf1df4590b..154e838974b8ec16581753dabc1f31b2c680630b 100644 (file)
@@ -1080,7 +1080,8 @@ tokenize_flags (const char *str,
          if (num_flags >= nflg)
            goto err;
 
-         flgnamelen = strspn (input_line_pointer, "abcdefghilmnopqrstvwxz");
+         flgnamelen = strspn (input_line_pointer,
+                              "abcdefghijklmnopqrstuvwxyz0123456789");
          if (flgnamelen > MAX_FLAG_NAME_LENGTH)
            goto err;