https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94947
--- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> --- In fact this situation doesn't seem to be handled at all - global variables are still an afterthought in IPA-PTA it seems. Needs more work than a simple fix.