[Bug target/89012] SH2 (FDPIC) duplicate symbols in generated assembly.
olegendo at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Oct 2 16:39:00 GMT 2019
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89012
--- Comment #10 from Oleg Endo <olegendo at gcc dot gnu.org> ---
(In reply to Rich Felker from comment #9)
> I think it's actually just a matter of removing the patterns for generating
> bsrf, but I may be mistaken. Generating jsr should be what happens "by
> default" in some sense if GCC just has to load the address, no?
I think so, yes.
> Of course
> that would also explicitly load the GOT pointer for the callee which we
> don't need since it's local.
Can you make an example? Maybe it can get optimized away afterwards, if it's
not used?
More information about the Gcc-bugs
mailing list