http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60577
--- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> --- So - if we delay marking any decl addressable during IPA reference recording then we need an IPA pass that computes whether any of the taken IPA_REF_ADDR may leak into the IL. We need to do that conservatively before any alias queries (thus eventually again at WPA stage to optimize more). So if there isn't any reference to __gcov_.access_buf inside the program this would make us optimize things again. But there is one from .LPBX1 in the testcase which is refered to from .LPBX0 which is refered from _GLOBAL__sub_I_65535_0_access_buf, so it doesn't help ... (and it seems it really is necessary to have those addresses) Considering LTO-ing libgcov there is no way we can magically mark those decls to be disregarded from alias analysis either. Which leaves the possibility of more cleverly instrumenting the program in the first place ...