This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH 2/6] don't have gengtype autocreate allocation macros for variably sized types
- From: Laurynas Biveinis <laurynas dot biveinis at gmail dot com>
- To: Richard Biener <richard dot guenther at gmail dot com>
- Cc: tsaunders at mozilla dot com, GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Wed, 30 Apr 2014 12:04:13 +0300
- Subject: Re: [PATCH 2/6] don't have gengtype autocreate allocation macros for variably sized types
- Authentication-results: sourceware.org; auth=none
- References: <1398769716-8629-1-git-send-email-tsaunders at mozilla dot com> <1398769716-8629-3-git-send-email-tsaunders at mozilla dot com> <CAFiYyc2=8_VoAebe__PVAc8YAoqC7j=XVmuEWtGy2VscZt+xRA at mail dot gmail dot com>
> ISTR we went to typed allocs as part of a transition which not
> fully materialised?
Yes. I had plans to replace the call-based GC marker routines with a
generic routine that operates on a type marker stored next to the
object. That enables partial, generational, etc GC.
> I actually dislike that we get back the
> ugly casts here - so, can we keep the allocators or use
> a macro similar to the XNEW family?
My 2c suggestion would be to keep the typed allocators at least until
a new plan for GC is developed.
--
Laurynas