public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* How to avoid a tree node being garbage collected after C  frontend?
@ 2009-11-09 17:05 Bingfeng Mei
  2009-11-09 19:00 ` Ian Lance Taylor
  0 siblings, 1 reply; 5+ messages in thread
From: Bingfeng Mei @ 2009-11-09 17:05 UTC (permalink / raw)
  To: gcc

Hello,
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?

I checked other targets. It seems v850 almost uses the same approach
to implement section name pragma. Not sure if it has the same problem.
Also the issue is very sensitive to certain condition. For example, with
-save-temps option the bug disappear. 

Thanks,
Bingfeng Mei

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2009-11-10 13:21 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-11-09 17:05 How to avoid a tree node being garbage collected after C frontend? Bingfeng Mei
2009-11-09 19:00 ` Ian Lance Taylor
2009-11-10 11:01   ` Bingfeng Mei
2009-11-10 12:19     ` Basile STARYNKEVITCH
2009-11-10 13:21       ` Bingfeng Mei

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).