"Bingfeng Mei" <b...@broadcom.com> writes:

> I need to pass a tree node (section name from processing pragmas)
> from C frontend to main GCC body (used in TARGET_INSERT_ATTRIBUTES). 
> I store the node in a global pointer array delcared in target.c.
> But the tree node is garbage collected in the end of c-parser
> pass, and causes an ICE later on. I am not familiar with GC part 
> at all. How to prevent this from hanppening?

Mark the global variable with GTY(()).  See many many existing
examples.

Ian

Reply via email to