]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
PR gas/21762: MIPS: Fix .stabs directive marking labels as MIPS16
authorJames Cowgill <James.Cowgill@imgtec.com>
Thu, 21 Sep 2017 23:54:19 +0000 (00:54 +0100)
committerMaciej W. Rozycki <macro@imgtec.com>
Thu, 21 Sep 2017 23:54:19 +0000 (00:54 +0100)
commit42c0794e961fd7922ad1358bd7221a8c85278ccc
treeb5f0280aab319cd0f4f22a29a21d67bc4af041f2
parent757bf54bb48a8417154cfdd7128c1775d43478d8
PR gas/21762: MIPS: Fix .stabs directive marking labels as MIPS16

If a .stabs directive was used before another .set directive in a MIPS
source file, s_mips_stab would call mips_mark_labels without having
initialized the mips_opts structure yet.  Fix this by calling
file_mips_check_options which will initialize mips_opts if necessary.

gas/
PR gas/21762
* config/tc-mips.c (s_mips_stab): Insert call to
file_mips_check_options.
* testsuite/gas/mips/micromips@stabs-symbol-type.d: New test.
* testsuite/gas/mips/mips.exp: Run the new tests.
* testsuite/gas/mips/mips16@stabs-symbol-type.d: New test.
* testsuite/gas/mips/stabs-symbol-type.d: New test.
* testsuite/gas/mips/stabs-symbol-type.s: New test source.
gas/ChangeLog
gas/config/tc-mips.c
gas/testsuite/gas/mips/micromips@stabs-symbol-type.d [new file with mode: 0644]
gas/testsuite/gas/mips/mips.exp
gas/testsuite/gas/mips/mips16@stabs-symbol-type.d [new file with mode: 0644]
gas/testsuite/gas/mips/stabs-symbol-type.d [new file with mode: 0644]
gas/testsuite/gas/mips/stabs-symbol-type.s [new file with mode: 0644]