This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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?


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]