https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64703
Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |wrong-code Target| |powerpc64 Component|tree-optimization |target --- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> --- The tree level gets this right and on x86_64 RTL expansion looks ok as well. Can it be that PPC relies on REG_POINTER stuff and maybe the function pointer isn't marked that way? That said, looks like a RTL / backend issue to me.