https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86459
Mark Wielaard <mark at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |ASSIGNED Ever confirmed|0 |1 --- Comment #2 from Mark Wielaard <mark at gcc dot gnu.org> --- (In reply to Mark Wielaard from comment #1) > Sorry I missed that testcase starting to fail. I don't currently have it in > my tree, so I assume it was added after this commit? It was. But now the testcase is compiled with -g3. > Which changed output_macinfo_op as follows: > > @@ -28070,7 +28092,7 @@ output_macinfo_op (macinfo_entry *ref) > node = find_AT_string (ref->info); > gcc_assert (node > && (node->form == DW_FORM_strp > - || node->form == DW_FORM_GNU_str_index)); > + || node->form == dwarf_form (DW_FORM_strx))); ^^^^^^^^^^ > dw2_asm_output_data (1, ref->code, > ref->code == DW_MACRO_define_strp > ? "Define macro strp" > > So I assume it is this assert that is triggering. > > dwarf_form () was also introduced in that patch and is: > > +/* And similarly for forms. */ > +static inline enum dwarf_form > +dwarf_FORM (enum dwarf_form form) ^^^^^^^^^^ Doh! So, it is a simply typo. s/dwarf_from/dwarf_FORM/ https://gcc.gnu.org/ml/gcc-patches/2018-07/msg00521.html