> I think it would be nice to work towards transitioning > flag_section_anchors to a flag on varpool nodes, thereby removing > the Optimization flag from common.opt:fsection-anchors > > That would simplify the walk over varpool candidates.
Makes sense to me, too. There are more candidates for sutff that should be variable specific in common.opt (such as variable alignment, -fdata-sctions, -fmerge-constants) and targets. We may try to do it in an easy to extend way so incrementally we can get rid of those global flags, too. One thing that needs to be done for LTO is sane merging, I guess in this case it is clear that the variable should be anchored when its previaling definition is. Honza > > Richard. > > > Thanks, > > Prathamesh > > > > > > Honza > > >> > > >> Richard. > > > > > > -- > Richard Biener <rguent...@suse.de> > SUSE LINUX GmbH, GF: Felix Imendoerffer, Jane Smithard, Graham Norton, HRB > 21284 (AG Nuernberg)