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)
committerMatthew Fortune <matthew.fortune@imgtec.com>
Tue, 28 Oct 2014 13:00:43 +0000 (13:00 +0000)
commitc25992074e0d8eb7de186238e859e81130a3fa9b
treeb69709fd172086db23c0645fb4781f72fa793d0a
parent0193db20ccc68942542bd96c860ae8749d50093f
MIPS/GAS: Correct file option settings with `.insn'

Import from trunk.

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