Re: [patch] Fix PR lto/81351

2017-11-13 Thread Richard Biener
On Mon, Nov 13, 2017 at 3:11 PM, Jan Hubicka wrote: >> > 2017-11-10 Eric Botcazou >> > >> > PR lto/81351 >> > * debug.h (dwarf2out_do_eh_frame): Declare. >> > * dwarf2cfi.c (dwarf2out_do_eh_frame): New predicate. >> > (dwarf2out_do_frame): Use it. >> > (dwarf2out_do_cfi_asm)

Re: [patch] Fix PR lto/81351

2017-11-13 Thread Jan Hubicka
> > 2017-11-10 Eric Botcazou > > > > PR lto/81351 > > * debug.h (dwarf2out_do_eh_frame): Declare. > > * dwarf2cfi.c (dwarf2out_do_eh_frame): New predicate. > > (dwarf2out_do_frame): Use it. > > (dwarf2out_do_cfi_asm): Likewise. > > * dwarf2out.c (dwarf2out_frame_finish):

Re: [patch] Fix PR lto/81351

2017-11-13 Thread Eric Botcazou
> 2017-11-10 Eric Botcazou > > PR lto/81351 > * debug.h (dwarf2out_do_eh_frame): Declare. > * dwarf2cfi.c (dwarf2out_do_eh_frame): New predicate. > (dwarf2out_do_frame): Use it. > (dwarf2out_do_cfi_asm): Likewise. > * dwarf2out.c (dwarf2out_frame_finish): Lik

[patch] Fix PR lto/81351

2017-11-10 Thread Eric Botcazou
Hi, this is the EH breakage introduced in LTO mode on non-(x86 or Linux): https://gcc.gnu.org/ml/gcc-patches/2017-11/msg00771.html As Jan explained, in the end it's only a matter of recording whether at least one function needs a FDE for EH in the compilation unit and, if so, generating the E