> > Well, just make them regular (anonymous) VAR_DECLs then ... (the fact > that a CONST_DECL is anonymous is probably the only real difference - > and that they are mergeable by content).
Something like that, perhaps. Plan to do that incrementally - having them in symbol tabel first is an important step. There is also an option to update CONST_DECL into VAR_DECL when it is being turned into hidden. Currently things are bit inflexible because we still make difference between const decl and var decl in tree representation. Once I finish my transition to push out DECL_WITH_VIS and DECL_NON_COMMON fields, we can turn CONST_DECL into VAR_DECL with special flag saying that symbol name/address value doesn't matter. This and, of course, cleaning up constpool mess can get me occupised for months ;) Honza