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] MIPS/GAS: Use local `isa' consistently in `is_opcode_valid'


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

commit be0fcbee1d47558af13288c6aece922dd4be6df5
Author: Maciej W. Rozycki <macro@imgtec.com>
Date:   Wed Dec 7 02:24:18 2016 +0000

    MIPS/GAS: Use local `isa' consistently in `is_opcode_valid'
    
    Replace a global `mips_opts.isa' reference in `is_opcode_valid' and use
    a local copy just made in `isa'.  No functional change.
    
    	gas/
    	* config/tc-mips.c (is_opcode_valid): Use local `isa'
    	consistently.

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

diff --git a/gas/ChangeLog b/gas/ChangeLog
index 781e975..7eec969 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,8 @@
+2016-12-07  Maciej W. Rozycki  <macro@imgtec.com>
+
+	* config/tc-mips.c (is_opcode_valid): Use local `isa'
+	consistently.
+
 2016-12-06  Nick Clifton  <nickc@redhat.com>
 
 	PR gas/20901
diff --git a/gas/config/tc-mips.c b/gas/config/tc-mips.c
index a9d6f6b..1e195d9 100644
--- a/gas/config/tc-mips.c
+++ b/gas/config/tc-mips.c
@@ -3217,7 +3217,7 @@ is_opcode_valid (const struct mips_opcode *mo)
   int fp_s, fp_d;
   unsigned int i;
 
-  if (ISA_HAS_64BIT_REGS (mips_opts.isa))
+  if (ISA_HAS_64BIT_REGS (isa))
     for (i = 0; i < ARRAY_SIZE (mips_ases); i++)
       if ((ase & mips_ases[i].flags) == mips_ases[i].flags)
 	ase |= mips_ases[i].flags64;


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