[MIPS] Apply ASE information for the selected processor
authorMatthew Fortune <matthew.fortune@mips.com>
Tue, 9 Apr 2019 17:34:48 +0000 (10:34 -0700)
committerFaraz Shahbazker <fshahbazker@wavecomp.com>
Sat, 13 Apr 2019 17:07:31 +0000 (10:07 -0700)
commit3315614d19a7fb409227298ead9b356bdbcca3bc
tree7a59bc98fb55415abb9c059e24f3766a1bfa6aeb
parentc40e31a1217f6ec9dd47e2e6806c2562096e31fe
[MIPS] Apply ASE information for the selected processor

GAS does not enable implicit ASEs for most MIPS processors.
The rework of option handling done as part of .module implementation
left the implicit ASE logic broken and default enabled ASEs for
most processors did not get applied.  This patch ensures the ASE
information is carried forward to the point where it is required.

gas/
* config/tc-mips.c (mips_set_options) <init_ase>: New field.
(file_mips_opts, mips_opts) <init_ase>: Initialize new field.
(file_mips_check_options): Propagate initial ASE settings.
(mips_after_parse_args, parse_code_option): Track the initial
ASE settings for a CPU.
(s_mipsset): Restore the initial ASE settings when reverting
to the default arch.
* testsuite/gas/mips/elf_mach_p6600.d: New test.
* testsuite/gas/mips/mips.exp: Run the new test.
gas/ChangeLog
gas/config/tc-mips.c
gas/testsuite/gas/mips/elf_mach_p6600.d [new file with mode: 0644]
gas/testsuite/gas/mips/mips.exp
This page took 0.038815 seconds and 4 git commands to generate.