Re: question about GTY macro

2014-05-09 Thread DJ Delorie
> Likewise. See how global_trees is marked for example. But likely > you forgot to mark struct int_n_trees_t to be considered for GC. I did remember int_n_trees_t, but it seems to be working now, so who knows what I was doing wrong :-P Thanks!

Re: question about GTY macro

2014-05-08 Thread Richard Biener
On Thu, May 8, 2014 at 7:21 AM, DJ Delorie wrote: > > Given this in tree.h: > > struct int_n_trees_t { > tree signed_type; > tree unsigned_type; > }; Mark with GTY(()) > extern struct int_n_trees_t int_n_trees[NUM_INT_N_ENTS]; Likewise. See how global_trees is marked for example.

question about GTY macro

2014-05-07 Thread DJ Delorie
Given this in tree.h: struct int_n_trees_t { tree signed_type; tree unsigned_type; }; extern struct int_n_trees_t int_n_trees[NUM_INT_N_ENTS]; And this in tree.c: struct int_n_trees_t int_n_trees [NUM_INT_N_ENTS]; What is the right way to mark these for garbage collection? I