[Bug middle-end/56727] Recursive call goes through the PLT unnecessarily
hubicka at ucw dot cz
gcc-bugzilla@gcc.gnu.org
Tue Mar 26 16:12:00 GMT 2013
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56727
--- Comment #3 from Jan Hubicka <hubicka at ucw dot cz> 2013-03-26 16:12:27 UTC ---
> Confirmed. We don't optimize callgraph cycles with one externally visible
> entry that way. And I believe we currently have no way of annotating a
> single call to resolve locally. Honza?
The canonical way to do it is to create a static alias and the redirect call
to the alias. We do that in FE for some specific examples (like thunks) but not
in general. Doing so would indeed make sense.
Honza
More information about the Gcc-bugs
mailing list