https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81968
--- Comment #66 from Jakub Jelinek <jakub at gcc dot gnu.org> --- (In reply to Jakub Jelinek from comment #63) > --- gcc/dwarf2out.c 2018-03-11 17:48:53.498068316 +0100 > +++ gcc/dwarf2out.c 2018-03-13 10:58:03.477514623 +0100 > @@ -28282,6 +28282,7 @@ output_macinfo (const char *debug_line_l > case DW_MACINFO_undef: > if ((!dwarf_strict || dwarf_version >= 5) > && HAVE_COMDAT_GROUP > + && !flag_lto > && vec_safe_length (files) != 1 > && i > 0 > && i + 1 < length > help? If yes, we could go for && (!flag_lto || !HAVE_BROKEN_LD_WHATEVER) > and add configure test for that. Rainer, does the above patch fix your remaining issues or are other sections involved too?