Hi, thunk_info should be freed with ggc_delete since it is ggc allocated.
Bootstrapped/regtested x86_64-linux, Honza PR jit/97867 * symtab-thunks.h (thunk_info::release): Use ggc_delete. diff --git a/gcc/symtab-thunks.h b/gcc/symtab-thunks.h index 41a684995b3..0dba2217793 100644 --- a/gcc/symtab-thunks.h +++ b/gcc/symtab-thunks.h @@ -167,7 +167,7 @@ inline void thunk_info::release () { if (symtab->m_thunks) - delete (symtab->m_thunks); + ggc_delete (symtab->m_thunks); symtab->m_thunks = NULL; } #endif /* GCC_SYMTAB_THUNKS_H */