[PATCH] Allocate all target globals using GC for SWITCHABLE_TARGETs
Wed Jan 8 19:41:00 GMT 2014
Jakub Jelinek <firstname.lastname@example.org> writes:
> 2014-01-08 Jakub Jelinek <email@example.com>
> * target-globals.c (save_target_globals): Allocate most of the
> structs using GC in payload of target_globals struct instead
> of allocating them on the heap.
Looks good to me FWIW. I don't know either way about the one-big-blob thing.
Note that we'll still leak memory when deleting TARGET_OPTION_NODEs
because target_ira_int and target_lra_int have pointers to heap-allocated
More information about the Gcc-patches