[binutils-gdb] gas/arc: Change 'LENGHT' to 'LENGTH'

Andrew Burgess aburgess@sourceware.org
Fri Apr 1 14:48:00 GMT 2016


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

commit 83cda17b6f9d4410a52b680bc5ab7fc1dae29887
Author: Andrew Burgess <andrew.burgess@embecosm.com>
Date:   Mon Mar 28 22:48:34 2016 +0100

    gas/arc: Change 'LENGHT' to 'LENGTH'
    
    Small spelling mistake in a #define, fixed in this commit.
    
    gas/ChangeLog:
    
    	* config/tc-arc.h (MAX_FLAG_NAME_LENGHT): Rename to...
    	(MAX_FLAG_NAME_LENGTH): ...this.
    	(struct arc_flags): Update to use MAX_FLAG_NAME_LENGTH.
    	* config/tc-arc.c (tokenize_flags): Likewise.

Diff:
---
 gas/ChangeLog       | 7 +++++++
 gas/config/tc-arc.c | 2 +-
 gas/config/tc-arc.h | 4 ++--
 3 files changed, 10 insertions(+), 3 deletions(-)

diff --git a/gas/ChangeLog b/gas/ChangeLog
index c9a762d..dce15a1 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,10 @@
+2016-04-01  Andrew Burgess  <andrew.burgess@embecosm.com>
+
+	* config/tc-arc.h (MAX_FLAG_NAME_LENGHT): Rename to...
+	(MAX_FLAG_NAME_LENGTH): ...this.
+	(struct arc_flags): Update to use MAX_FLAG_NAME_LENGTH.
+	* config/tc-arc.c (tokenize_flags): Likewise.
+
 2016-04-01  Alan Modra  <amodra@gmail.com>
 
 	* cgen.c (weak_operand_overflow_check): Return const char*.
diff --git a/gas/config/tc-arc.c b/gas/config/tc-arc.c
index f3f7e26..4f9c336 100644
--- a/gas/config/tc-arc.c
+++ b/gas/config/tc-arc.c
@@ -1078,7 +1078,7 @@ tokenize_flags (const char *str,
 	    goto err;
 
 	  flgnamelen = strspn (input_line_pointer, "abcdefghilmnopqrstvwxz");
-	  if (flgnamelen > MAX_FLAG_NAME_LENGHT)
+	  if (flgnamelen > MAX_FLAG_NAME_LENGTH)
 	    goto err;
 
 	  memcpy (flags->name, input_line_pointer, flgnamelen);
diff --git a/gas/config/tc-arc.h b/gas/config/tc-arc.h
index 95efd77..93a7d77 100644
--- a/gas/config/tc-arc.h
+++ b/gas/config/tc-arc.h
@@ -210,12 +210,12 @@ extern int tc_arc_regname_to_dw2regnum (char *regname);
 #define NOP_OPCODE_S   0x000078E0
 #define NOP_OPCODE_L   0x264A7000 /* mov 0,0.  */
 
-#define MAX_FLAG_NAME_LENGHT 3
+#define MAX_FLAG_NAME_LENGTH 3
 
 struct arc_flags
 {
   /* Name of the parsed flag.  */
-  char name[MAX_FLAG_NAME_LENGHT + 1];
+  char name[MAX_FLAG_NAME_LENGTH + 1];
 
   /* The code of the parsed flag.  Valid when is not zero.  */
   unsigned char code;



More information about the Binutils-cvs mailing list