This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Fix PR target/85238


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]