https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111958
Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |needs-reduction Component|debug |ipa Priority|P3 |P2 CC| |hubicka at gcc dot gnu.org, | |marxin at gcc dot gnu.org --- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> --- The issue goes away when using -fno-ipa-icf - we have # 2 "/usr/include/sys/unistd.h" 2 3 4 # 9 "getgid.c" 2 # 14 "getgid.c" gid_t _POSIX_types_Gid = 0; gid_t getgid (void) { return _POSIX_types_Gid; } gid_t getegid (void) { return _POSIX_types_Gid; } which we first ICF and then inline back. So it looks like when "materializing" the alias clone for getegid we get a wrong location (or the location for the alias clone is broken / not initialized?) Honza?