[Bug tree-optimization/56446] [4.6/4.7/4.8 Regression] Generate one fewer relocation when calling a checked weakref function

thiago at kde dot org gcc-bugzilla@gcc.gnu.org
Mon Feb 25 22:27:00 GMT 2013


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56446

--- Comment #3 from Thiago Macieira <thiago at kde dot org> 2013-02-25 22:27:14 UTC ---
This should not be done for non-PIC code. In those, it might be preferable to
make the actual call, as opposed to an indirect jump.

I also wonder what would happen for a call that resolves back into the current
module. In those cases, keeping the indirect call would be unnecessary.
However, it also seems like an edge case to me: why is the symbol weak if it's
part of the module?



More information about the Gcc-bugs mailing list