[Bug tree-optimization/35513] Improve targetm.binds_local_p

hjl.tools at gmail dot com gcc-bugzilla@gcc.gnu.org
Thu Jan 11 17:22:00 GMT 2018


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=35513

--- Comment #3 from H.J. Lu <hjl.tools at gmail dot com> ---
Hidden ifunc address has the similar issue, see the testcase in PR 83782.
If targetm.binds_local_p needs to know if the symbol is used for read,
write or branch, so that all function pointers, including hidden ones, are
treated as as global, when -fPIC is used.


More information about the Gcc-bugs mailing list