This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[committed] MIPS/GAS: Use local `isa' consistently in `is_opcode_valid'
- From: "Maciej W. Rozycki" <macro at imgtec dot com>
- To: <binutils at sourceware dot org>
- Date: Wed, 7 Dec 2016 12:36:06 +0000
- Subject: [committed] MIPS/GAS: Use local `isa' consistently in `is_opcode_valid'
- Authentication-results: sourceware.org; auth=none
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.
---
binutils-mips-gas-is-opcode-isa.diff
Index: binutils/gas/config/tc-mips.c
===================================================================
--- binutils.orig/gas/config/tc-mips.c 2016-11-24 23:13:38.868941879 +0000
+++ binutils/gas/config/tc-mips.c 2016-11-25 00:00:49.779749494 +0000
@@ -3217,7 +3248,7 @@ is_opcode_valid (const struct mips_opcod
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;