[Bug middle-end/88302] __gcov_indirect_call_profiler_v2 and first_run profiling can be cheaper with LTO
hubicka at ucw dot cz
gcc-bugzilla@gcc.gnu.org
Mon Dec 3 11:16:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88302
--- Comment #3 from Jan Hubicka <hubicka at ucw dot cz> ---
> The way GCC exports internal API for plugins, all functions are externally
> visible. Unless plugins are disabled, the linker receives -rdynamic and so all
> non-static functions appear in the ELF dynamic table.
>
> It's possible but complicated to solve this anyway by having two entrypoints
> for direct and indirect calls.
Yep, good point.
It would be good to get plugin api sorted out, but it is kind of
orthogonal issue. For now I am testing with --disable-plugin.
Implementing this would speed up other programs too.
Honza
More information about the Gcc-bugs
mailing list