This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Fix PR target/85238
- From: Richard Biener <richard dot guenther at gmail dot com>
- To: gcc-patches at gcc dot gnu dot org,Eric Botcazou <ebotcazou at adacore dot com>
- Date: Thu, 12 Apr 2018 19:25:34 +0200
- Subject: Re: Fix PR target/85238
- References: <38091592.W5vmoLE4UR@polaris>
On April 12, 2018 4:18:47 PM GMT+02:00, Eric Botcazou <ebotcazou@adacore.com> wrote:
>This makes -g work again in LTO mode for Windows targets by kludging
>around
>the missing support for copying PE-COFF debug sections in the simple
>object
>module of libiberty, thus effectively disabling early debug in LTO
>mode.
>The patch also contains a fixlet for a related oversight in the LTO
>wrapper.
>
>Bootstrapped and tested on x86-64/Windows, approved by Richard B. in
>the audit
>trail and applied on the mainline.
Thanks Eric for fixing this.
Richard.
>
>2018-04-12 Eric Botcazou <ebotcazou@adacore.com>
>
> 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.