aboutsummaryrefslogtreecommitdiff
path: root/gcc/dwarf2out.c
diff options
context:
space:
mode:
authorMark Wielaard <mark@klomp.org>2018-07-10 22:44:30 +0000
committerMark Wielaard <mark@gcc.gnu.org>2018-07-10 22:44:30 +0000
commit6cdd696f3e0d0e0243bf2362a74c691285caadd5 (patch)
treee77d84581ed63306b3897b59a463f902ed619a34 /gcc/dwarf2out.c
parenta25bbd5413e2a4bfd7a47dcd7501c8c7f86ee7c7 (diff)
downloadgcc-6cdd696f3e0d0e0243bf2362a74c691285caadd5.zip
gcc-6cdd696f3e0d0e0243bf2362a74c691285caadd5.tar.gz
gcc-6cdd696f3e0d0e0243bf2362a74c691285caadd5.tar.bz2
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
Diffstat (limited to 'gcc/dwarf2out.c')
-rw-r--r--gcc/dwarf2out.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c
index 9523217..4640a22 100644
--- a/gcc/dwarf2out.c
+++ b/gcc/dwarf2out.c
@@ -28066,7 +28066,7 @@ output_macinfo_op (macinfo_entry *ref)
node = find_AT_string (ref->info);
gcc_assert (node
&& (node->form == DW_FORM_strp
- || node->form == dwarf_form (DW_FORM_strx)));
+ || node->form == dwarf_FORM (DW_FORM_strx)));
dw2_asm_output_data (1, ref->code,
ref->code == DW_MACRO_define_strp
? "Define macro strp"