This is the mail archive of the binutils-cvs@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[binutils-gdb] gas/arc: Allow greater range of characters into flag names


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=692166c24476b9123ca7dbb999e458a1f7fa2faa

commit 692166c24476b9123ca7dbb999e458a1f7fa2faa
Author: Andrew Burgess <andrew.burgess@embecosm.com>
Date:   Mon Mar 28 22:51:12 2016 +0100

    gas/arc: Allow greater range of characters into flag names
    
    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.

Diff:
---
 gas/ChangeLog       | 5 +++++
 gas/config/tc-arc.c | 3 ++-
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/gas/ChangeLog b/gas/ChangeLog
index 830afa5..0126fb8 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,5 +1,10 @@
 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
 	new de_fault label.
 	(preprocess_operands): Delete.
diff --git a/gas/config/tc-arc.c b/gas/config/tc-arc.c
index 04ccd07..154e838 100644
--- a/gas/config/tc-arc.c
+++ b/gas/config/tc-arc.c
@@ -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;


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]