This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/85238] [8 Regression] lto-wrapper: fatal error: simple_object_copy_lto_debug_sections not implemented: Invalid argument on Cygwin
- From: "rguenth at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 06 Apr 2018 07:59:19 +0000
- Subject: [Bug target/85238] [8 Regression] lto-wrapper: fatal error: simple_object_copy_lto_debug_sections not implemented: Invalid argument on Cygwin
- Auto-submitted: auto-generated
- References: <bug-85238-4@http.gcc.gnu.org/bugzilla/>
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 <rguenther@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.