[Bug lto/81968] [8 regression] early lto debug objects make Solaris ld SEGV

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Mar 13 10:02:00 GMT 2018


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81968

--- Comment #63 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Are the remaining issues only related to .debug_macro, or other stuff too?
If only .debug_macro, does:
--- 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.


More information about the Gcc-bugs mailing list