This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
destruction of GTY() data
- From: Basile STARYNKEVITCH <basile at starynkevitch dot net>
- To: gcc at gcc dot gnu dot org
- Date: Tue, 5 Dec 2006 21:06:13 +0100
- Subject: destruction of GTY() data
Hello
I am not sure to understand what if_marked or deletable means in GTY context
http://gcc.gnu.org/onlinedocs/gccint/GTY-Options.html
http://gcc.gnu.org/wiki/Memory_management
I want to have a GTY() garbage collected structure such that, when it
is destoyed, some specific routine is called (this should indeed be
possible, since GGC is a mark& sweep garbage collector, which delet
individually each dead data).
More precisely, I want to ha a GTY data which contains either an MPFR
http://www.mpfr.org/ data, or a PPL (Parma Polyhedra
Libraryhttp://www.cs.unipr.it/ppl/ ) data. Hence the underlying MPFR
(or PPL) destruction routine (like mpfr_clear or
ppl_delete_Coefficient) should be called.
How can I achieve this?
Regards
--
Basile STARYNKEVITCH http://starynkevitch.net/Basile/
email: basile<at>starynkevitch<dot>net mobile: +33 6 8501 2359
8, rue de la Faïencerie, 92340 Bourg La Reine, France
*** opinions {are only mines, sont seulement les miennes} ***