Re: [PATCH] Do not remove ifunc_resolver in LTO.

2020-04-23 Thread Jan Hubicka
> On 4/22/20 8:11 PM, Jan Hubicka wrote: > > > On Mon, 2020-04-20 at 11:34 +0200, Martin Liška wrote: > > > > Hi. > > > > > > > > The patch prevents a ifunc alias from removal in remove unreachable > > > > nodes. > > > > Note that ifunc alias lives in a COMDAT section and so that > > > > cgraph_n

Re: [PATCH] Do not remove ifunc_resolver in LTO.

2020-04-22 Thread Martin Liška
On 4/22/20 8:11 PM, Jan Hubicka wrote: On Mon, 2020-04-20 at 11:34 +0200, Martin Liška wrote: Hi. The patch prevents a ifunc alias from removal in remove unreachable nodes. Note that ifunc alias lives in a COMDAT section and so that cgraph_node::can_remove_if_no_direct_calls_and_refs_p returned

Re: [PATCH] Do not remove ifunc_resolver in LTO.

2020-04-22 Thread Jan Hubicka
> On Mon, 2020-04-20 at 11:34 +0200, Martin Liška wrote: > > Hi. > > > > The patch prevents a ifunc alias from removal in remove unreachable nodes. > > Note that ifunc alias lives in a COMDAT section and so that > > cgraph_node::can_remove_if_no_direct_calls_and_refs_p returned true for it. > > >

Re: [PATCH] Do not remove ifunc_resolver in LTO.

2020-04-22 Thread Jeff Law via Gcc-patches
On Mon, 2020-04-20 at 11:34 +0200, Martin Liška wrote: > Hi. > > The patch prevents a ifunc alias from removal in remove unreachable nodes. > Note that ifunc alias lives in a COMDAT section and so that > cgraph_node::can_remove_if_no_direct_calls_and_refs_p returned true for it. > > Patch can boo

[PATCH] Do not remove ifunc_resolver in LTO.

2020-04-20 Thread Martin Liška
Hi. The patch prevents a ifunc alias from removal in remove unreachable nodes. Note that ifunc alias lives in a COMDAT section and so that cgraph_node::can_remove_if_no_direct_calls_and_refs_p returned true for it. Patch can bootstrap on x86_64-linux-gnu and survives regression tests. I was unab