PR debug/86459 - Fix -gsplit-dwarf -g3 gcc_assert
authorMark Wielaard <mark@klomp.org>
Tue, 10 Jul 2018 22:44:30 +0000 (22:44 +0000)
committerMark Wielaard <mark@gcc.gnu.org>
Tue, 10 Jul 2018 22:44:30 +0000 (22:44 +0000)
commit6cdd696f3e0d0e0243bf2362a74c691285caadd5
treee77d84581ed63306b3897b59a463f902ed619a34
parenta25bbd5413e2a4bfd7a47dcd7501c8c7f86ee7c7
PR debug/86459 - Fix -gsplit-dwarf -g3 gcc_assert

There was a typo in the output_macinfo_op gcc_assert.
The function is called dwarf_FORM, not dwarf_form.
Add the provided testcase from the bug to test -gsplit-dwarf -g3.

gcc/ChangeLog:

PR debug/86459
* dwarf2out.c (output_macinfo_op): Fix dwarf_FORM typo in gcc_assert.

gcc/testsuite/ChangeLog:

PR debug/86459
* gcc.dg/pr86459.c: New test.

From-SVN: r262545
gcc/ChangeLog
gcc/dwarf2out.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr86459.c [new file with mode: 0644]