[Bug middle-end/88302] __gcov_indirect_call_profiler_v2 and first_run profiling can be cheaper with LTO
amonakov at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Dec 3 10:41:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88302
Alexander Monakov <amonakov at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |amonakov at gcc dot gnu.org
--- Comment #2 from Alexander Monakov <amonakov at gcc dot gnu.org> ---
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.
More information about the Gcc-bugs
mailing list