Re: [patch] Fix EH breakage in LTO mode

2017-11-09 Thread Eric Botcazou
> Hmm, I am still not following. By EH-neutral you mean function compiled > with -fno-exceptions so it has no unwind info at all or one that has unwind > info but does not do anything with EH? OK, I see what you mean now. So, even if lto_init_eh is never invoked and thus never sets flag_exceptio

Re: [patch] Fix EH breakage in LTO mode

2017-11-09 Thread Eric Botcazou
> this is PR lto/81351. Totally missed it... Do not hesitate to CC me for SPARC regressions. -- Eric Botcazou

Re: [patch] Fix EH breakage in LTO mode

2017-11-09 Thread Richard Biener
On November 9, 2017 7:03:18 PM GMT+01:00, Jan Hubicka wrote: >> > I am not sure I follow your argumentation here. flag_exceptions is >> > optimization which means that one should not test it globally. For >that >> > reason I would just change dwarf2out to simply trigger >> > dwarf2out_frame_finis

Re: [patch] Fix EH breakage in LTO mode

2017-11-09 Thread Jan Hubicka
> > I am not sure I follow your argumentation here. flag_exceptions is > > optimization which means that one should not test it globally. For that > > reason I would just change dwarf2out to simply trigger > > dwarf2out_frame_finish if any of the compiled functions needed it (had > > flag_exceptio

Re: [patch] Fix EH breakage in LTO mode

2017-11-09 Thread Rainer Orth
Hi Eric, > the patch > > 2017-07-06 Jan Hubicka > > * lto-wrapper.c (merge_and_complain): Do not merge > fexceptions, fnon_call_exceptions, ftrapv, ffp_contract_, fmath_errno, > fsigned_zeros, ftrapping_math, fwrapv. > (append_compiler_options): Do not track these option

Re: [patch] Fix EH breakage in LTO mode

2017-11-09 Thread Eric Botcazou
> I am not sure I follow your argumentation here. flag_exceptions is > optimization which means that one should not test it globally. For that > reason I would just change dwarf2out to simply trigger > dwarf2out_frame_finish if any of the compiled functions needed it (had > flag_exceptions set).

Re: [patch] Fix EH breakage in LTO mode

2017-11-09 Thread Jan Hubicka
> Hi, > > the patch > > 2017-07-06 Jan Hubicka > > * lto-wrapper.c (merge_and_complain): Do not merge > fexceptions, fnon_call_exceptions, ftrapv, ffp_contract_, fmath_errno, > fsigned_zeros, ftrapping_math, fwrapv. > (append_compiler_options): Do not track these optio

Re: [patch] Fix EH breakage in LTO mode

2017-11-09 Thread Richard Biener
On November 9, 2017 5:11:39 PM GMT+01:00, Eric Botcazou wrote: >Hi, > >the patch > >2017-07-06 Jan Hubicka > > * lto-wrapper.c (merge_and_complain): Do not merge > fexceptions, fnon_call_exceptions, ftrapv, ffp_contract_, fmath_errno, > fsigned_zeros, ftrapping_math, fwrapv.

[patch] Fix EH breakage in LTO mode

2017-11-09 Thread Eric Botcazou
Hi, the patch 2017-07-06 Jan Hubicka * lto-wrapper.c (merge_and_complain): Do not merge fexceptions, fnon_call_exceptions, ftrapv, ffp_contract_, fmath_errno, fsigned_zeros, ftrapping_math, fwrapv. (append_compiler_options): Do not track these options.