> On December 5, 2019 2:03:58 PM GMT+01:00, "Martin Liška" <mli...@suse.cz> > wrote: > >On 12/5/19 1:59 PM, Richard Biener wrote: > >> Isn't there ggc_alloc <T> for this? Also ggc_alloc_no_dtor<T> in > >case you > >> want to handle finalization yourself. > > > >No, if I see correctly it only calls Dtor: > > But its odd to handle finalization but not construction here and not > finalization in your new wrapper. > > That doesn't look like a good API. I see Honza approved the change but maybe > you can fix the actual issue without this new API for the moment.
Sorry, I was too fast here - I meant to comment on the ggc_new as well. Indeed current scheme seems bit confusing to me, too. Honza