MIPS/GAS: Correct file option settings with `.insn'
authorMaciej W. Rozycki <macro@codesourcery.com>
Tue, 21 Oct 2014 22:06:23 +0000 (23:06 +0100)
committerMaciej W. Rozycki <macro@codesourcery.com>
Tue, 21 Oct 2014 22:06:23 +0000 (23:06 +0100)
commit7bb01e2d7401f2eb8995d445917708209d3ad4bf
tree664e115ce41ea5f5f80d970bf608c360a0d79bd1
parent80272b8cb9f78cd97c4655019e7826b6d4c5dd41
MIPS/GAS: Correct file option settings with `.insn'

This makes sure `HAVE_CODE_COMPRESSION' evaluates correctly when the
`.insn' directive is used at the beginning of a source file before any
instructions have been produced and that ELF file header's MIPS16 and
microMIPS ASE flags are set correctly in the case where no instructions
have been produced other than with the said directive.

gas/
* config/tc-mips.c (s_insn): Set file options.

gas/testsuite/
* gas/mips/insn-opts.d: New test.
* gas/mips/insn-opts.s: New test source.
* gas/mips/mips.exp: Run the new test.
gas/ChangeLog
gas/config/tc-mips.c
gas/testsuite/ChangeLog
gas/testsuite/gas/mips/insn-opts.d [new file with mode: 0644]
gas/testsuite/gas/mips/insn-opts.s [new file with mode: 0644]
gas/testsuite/gas/mips/mips.exp