https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85238
Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Target| |cygwin, mingw Status|UNCONFIRMED |NEW Keywords| |lto Last reconfirmed| |2018-04-06 Component|lto |target CC| |jyong at gcc dot gnu.org, | |rguenth at gcc dot gnu.org Ever confirmed|0 |1 Summary|lto-wrapper: fatal error: |[8 Regression] lto-wrapper: |simple_object_copy_lto_debu |fatal error: |g_sections not implemented: |simple_object_copy_lto_debu |Invalid argument on Cygwin |g_sections not implemented: | |Invalid argument on Cygwin Target Milestone|--- |8.0 --- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> --- That's expected. On darwin that was mitigated with 2018-03-02 Richard Biener <rguent...@suse.de> PR target/82005 * config/darwin.c (saved_debug_info_level): New static global. (darwin_asm_lto_start): Disable debug info generation for LTO out. (darwin_asm_lto_end): Restore debug info generation settings. so mingw/cygwin need to do sth similar and define the TARGET_ASM_LTO_START/END hooks, see config/darwin.[ch] for examples. Or, of course, implement COFF support for simple_object_copy_lto_debug_sections.