https://gcc.gnu.org/bugzilla/show_bug.cgi?id=28734
--- Comment #12 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Lewis Hyatt <[email protected]>: https://gcc.gnu.org/g:60623805437fc74e8e0e90b92d86f181f5ab5ba2 commit r17-2968-g60623805437fc74e8e0e90b92d86f181f5ab5ba2 Author: Lewis Hyatt <[email protected]> Date: Sat Aug 1 09:52:31 2026 -0400 statistics: Fix --enable-gather-detailed-mem-stats for PCH [PR28734] When GCC is configured with --enable-gather-detailed-mem-stats, most of the pch.exp tests fail, because one function (mem_alloc_description::release_object_overhead) does not handle the case of being asked to process an unknown object. After PCH restore, there will be GGC'ed objects that the statistics gathering infrastructure does not know about, so simply ignore them in that case. gcc/ChangeLog: PR middle-end/28734 * mem-stats.h (mem_alloc_description::release_object_overhead): Handle the case that PTR was not found in the hash map, which can happen after PCH restore.
