On Mon, 2006-02-13 at 11:48 +0900, Arquimedes Canedo wrote: > Dear developers, > > I am trying to get all global declarations in GIMPLE level just > before RTL expansion. I have tried to copy the scope instead of > pop_scope() to catch the global declarations in the way > c_write_global_declarations() does it but I've failed. It seems the > structures are not yet completed at this stage (?).
cgraph's varpool should have these. Look at ipa-type-escape.c for the varpool_nodes_queue walking code.