[Bug jit/97867] [11 Regression] thunk_info::release breaks function calls in libgccjit

hubicka at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Nov 24 18:41:47 GMT 2020


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97867

--- Comment #4 from Jan Hubicka <hubicka at gcc dot gnu.org> ---
Sorry, I lost track of this, because i still hit the strange linker error with
building libjit

The following ghsould fix it.
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  */


More information about the Gcc-bugs mailing list