https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109983
--- Comment #6 from Sergei Trofimovich <slyfox at gcc dot gnu.org> --- Created attachment 55174 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=55174&action=edit packet-rnsap-shrunk-slightly.c.i.xz packet-rnsap-shrunk-slightly.c.i.xz is a slightly shrunk version of the original. It exhibits 10x slowdown and has a reasonable compilation completion time. Might be useful to explore as is or bisect gcc: $ gcc -O2 -c packet-rnsap-shrunk-slightly.c.i -o bug.o -fipa-pta -Wno-deprecated-declarations -fno-ipa-pta >/dev/null 2>&1 real 0m0,657s user 0m0,626s sys 0m0,026s $ gcc -O2 -c packet-rnsap-shrunk-slightly.c.i -o bug.o -fipa-pta -Wno-deprecated-declarations -fipa-pta >/dev/null 2>&1 real 0m6,120s user 0m6,065s sys 0m0,045s -ftime-report says 'ipa points-to' takes 88%. -fdump-ipa-all-details creates 2.0G bug.i.092i.pta2 file (the rest of files are unred 5M). I suspect it's a pathology in solving a huge `proto_reg_handoff_rnsap()` graph. Some variables have up to 5000 PT entries.