This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[committed] MIPS/GAS: Use `opts->isa' consistently in `mips_check_options'
- From: "Maciej W. Rozycki" <macro at imgtec dot com>
- To: <binutils at sourceware dot org>
- Date: Sat, 9 Apr 2016 12:57:02 +0100
- Subject: [committed] MIPS/GAS: Use `opts->isa' consistently in `mips_check_options'
- Authentication-results: sourceware.org; auth=none
gas/
* config/tc-mips.c (mips_check_options): Use `opts->isa'
consistently.
---
I have committed this change.
Maciej
binutils-mipsr6-gas-check-options-isa.diff
Index: binutils/gas/config/tc-mips.c
===================================================================
--- binutils.orig/gas/config/tc-mips.c 2016-04-06 01:59:42.000000000 +0100
+++ binutils/gas/config/tc-mips.c 2016-04-06 02:15:22.657395187 +0100
@@ -3850,7 +3850,7 @@ mips_check_options (struct mips_set_opti
if (abi_checks
&& ABI_NEEDS_64BIT_REGS (mips_abi))
as_warn (_("`fp=32' used with a 64-bit ABI"));
- if (ISA_IS_R6 (mips_opts.isa) && opts->single_float == 0)
+ if (ISA_IS_R6 (opts->isa) && opts->single_float == 0)
as_bad (_("`fp=32' used with a MIPS R6 cpu"));
break;
default:
@@ -3863,12 +3863,12 @@ mips_check_options (struct mips_set_opti
if (opts->micromips == 1 && opts->mips16 == 1)
as_bad (_("`mips16' cannot be used with `micromips'"));
- else if (ISA_IS_R6 (mips_opts.isa)
+ else if (ISA_IS_R6 (opts->isa)
&& (opts->micromips == 1
|| opts->mips16 == 1))
as_fatal (_("`%s' can not be used with `%s'"),
opts->micromips ? "micromips" : "mips16",
- mips_cpu_info_from_isa (mips_opts.isa)->name);
+ mips_cpu_info_from_isa (opts->isa)->name);
if (ISA_IS_R6 (opts->isa) && mips_relax_branch)
as_fatal (_("branch relaxation is not supported in `%s'"),