[binutils-gdb] Fix minor NDS32 renaming snafu.

Nick Clifton nickc@sourceware.org
Fri Jul 2 09:45:33 GMT 2021


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

commit af82b082c27eeefa261753e746fd002cc528cd1f
Author: Nick Clifton <nickc@redhat.com>
Date:   Fri Jul 2 10:45:02 2021 +0100

    Fix minor NDS32 renaming snafu.
    
            * config/tc-nds32.c: Change all references of keyword_gpr to
            nds32_keyword_gpr.

Diff:
---
 gas/ChangeLog         | 5 +++++
 gas/config/tc-nds32.c | 4 ++--
 2 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/gas/ChangeLog b/gas/ChangeLog
index 0d830d62b52..c154835ddba 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,8 @@
+2021-07-02  Nick Clifton  <nickc@redhat.com>
+
+	* config/tc-nds32.c: Change all references of keyword_gpr to
+	nds32_keyword_gpr.
+
 2021-07-01  Mike Frysinger  <vapier@gentoo.org>
 
 	* config/tc-microblaze.c (md_begin): Make opcode const.  Rename
diff --git a/gas/config/tc-nds32.c b/gas/config/tc-nds32.c
index c5bad6b476a..04ae6895ec1 100644
--- a/gas/config/tc-nds32.c
+++ b/gas/config/tc-nds32.c
@@ -97,7 +97,7 @@ static int optimize_for_space = 0;
 static int label_exist = 0;
 /* Flag to save state in omit_fp region.  */
 static int in_omit_fp = 0;
-extern struct nds32_keyword keyword_gpr[];
+extern struct nds32_keyword nds32_keyword_gpr[];
 /* Tag there is relax relocation having to link.  */
 static bool relaxing = false;
 /* ICT model.  */
@@ -4615,7 +4615,7 @@ md_begin (void)
 
   /* Initial general purpose registers hash table.  */
   nds32_gprs_hash = str_htab_create ();
-  for (k = keyword_gpr; k->name; k++)
+  for (k = nds32_keyword_gpr; k->name; k++)
     str_hash_insert (nds32_gprs_hash, k->name, k, 0);
 
   /* Initial branch hash table.  */


More information about the Binutils-cvs mailing list