diff options
author | James Cowgill <James.Cowgill@imgtec.com> | 2017-09-22 00:54:19 +0100 |
---|---|---|
committer | Maciej W. Rozycki <macro@imgtec.com> | 2017-09-22 00:54:19 +0100 |
commit | 42c0794e961fd7922ad1358bd7221a8c85278ccc (patch) | |
tree | b5f0280aab319cd0f4f22a29a21d67bc4af041f2 /bfd/mach-o.h | |
parent | 757bf54bb48a8417154cfdd7128c1775d43478d8 (diff) | |
download | gdb-42c0794e961fd7922ad1358bd7221a8c85278ccc.zip gdb-42c0794e961fd7922ad1358bd7221a8c85278ccc.tar.gz gdb-42c0794e961fd7922ad1358bd7221a8c85278ccc.tar.bz2 |
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.
Diffstat (limited to 'bfd/mach-o.h')
0 files changed, 0 insertions, 0 deletions