Re: [PATCH] PR middle-end/71524: IFUNC resolver may resolve to a non-local function

2016-06-26 Thread Alexander Monakov
On Sun, 26 Jun 2016, H.J. Lu wrote: > On Sun, Jun 26, 2016 at 12:49 AM, Alexander Monakov > wrote: > > On Sat, 25 Jun 2016, H.J. Lu wrote: > >> The resolver for ifunc functions might resolve to a non-local function. > > > > I think the explanation doesn't match the testcase, in which all three >

Re: [PATCH] PR middle-end/71524: IFUNC resolver may resolve to a non-local function

2016-06-26 Thread H.J. Lu
On Sun, Jun 26, 2016 at 12:49 AM, Alexander Monakov wrote: > On Sat, 25 Jun 2016, H.J. Lu wrote: >> The resolver for ifunc functions might resolve to a non-local function. > > I think the explanation doesn't match the testcase, in which all three > functions: the resolver, the symbol being resolve

Re: [PATCH] PR middle-end/71524: IFUNC resolver may resolve to a non-local function

2016-06-26 Thread Alexander Monakov
On Sat, 25 Jun 2016, H.J. Lu wrote: > The resolver for ifunc functions might resolve to a non-local function. I think the explanation doesn't match the testcase, in which all three functions: the resolver, the symbol being resolved, and the ultimate resolution are all static. I don't think there w

[PATCH] PR middle-end/71524: IFUNC resolver may resolve to a non-local function

2016-06-25 Thread H.J. Lu
The resolver for ifunc functions might resolve to a non-local function. Tested on x86 and x86-64. OK for trunk? H.J. --- gcc/ PR middle-end/71524 * symtab.c (symtab_node::binds_to_current_def_p): Return false for IFUNC resolver. gcc/testsuite/ PR middle-end/715