re PR target/85238 (lto-wrapper: fatal error: simple_object_copy_lto_debug_sections...
authorEric Botcazou <ebotcazou@adacore.com>
Thu, 12 Apr 2018 14:18:17 +0000 (14:18 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Thu, 12 Apr 2018 14:18:17 +0000 (14:18 +0000)
commitdc0e0c6b2e70e9d2b3bbf02664b3f5a670c5c2be
treef9ab5a36b95554430d5d26309c62747b49010914
parent2e5efa6760314aac101b63d1a7742cff5f5e650f
re PR target/85238 (lto-wrapper: fatal error:  simple_object_copy_lto_debug_sections not implemented: Invalid argument  on Cygwin)

PR target/85238
* lto-wrapper.c (debug_objcopy): Open the files in binary mode.
* dwarf2out.c (dwarf2out_early_finish): Do not generate assembly in LTO
mode for PE-COFF targets.
* config/i386/i386-protos.h (i386_pe_asm_lto_start): Declare.
(i386_pe_asm_lto_end): Likewise.
* config/i386/cygming.h (TARGET_ASM_LTO_START): Define.
(TARGET_ASM_LTO_END): Likewise.
* config/i386/winnt.c (saved_debug_info_level): New static variable.
(i386_pe_asm_lto_start): New function.
(i386_pe_asm_lto_end): Likewise.

From-SVN: r259347
gcc/ChangeLog
gcc/config/i386/cygming.h
gcc/config/i386/i386-protos.h
gcc/config/i386/winnt.c
gcc/dwarf2out.c
gcc/lto-wrapper.c