C++ constructors and callgraph interaction ("__ct_comp " vs constructor function body)
David Malcolm
dmalcolm@redhat.com
Thu Feb 6 20:33:00 GMT 2020
On Thu, 2020-02-06 at 13:49 +0100, Martin Jambor wrote:
> Hi,
>
> On Wed, Feb 05 2020, David Malcolm wrote:
> > Answering my own question, calling ultimate_alias_target on the
> > __ct_comp cgraph_node seems to find the "right" cgraph_node.
> >
> > Is that the right general-purpose answer here?
> >
>
> sounds like it. If however you also want the function to
> look through thunks you should use cgraph_node::function_symbol()
> instead. But thunks of course can modify the first parameter, return
> value etc.
Thanks. I went with ultimate_alias_target for now; FWIW the patch in
question is:
https://gcc.gnu.org/ml/gcc-patches/2020-02/msg00398.html
Dave
More information about the Gcc
mailing list