Re: Processing global static (or const) variables

2010-04-06 Thread Richard Guenther
On Tue, Apr 6, 2010 at 5:50 AM, Ehren Metcalfe wrote: > (Apologies to Richard for sending this twice -- I forgot to cc the list) > >> At which point during the compilation does it not work?  I suppose >> at the point where the qualified variants are already optimized away. > > I've had some diffic

Re: Processing global static (or const) variables

2010-04-05 Thread Ehren Metcalfe
(Apologies to Richard for sending this twice -- I forgot to cc the list) > At which point during the compilation does it not work? I suppose > at the point where the qualified variants are already optimized away. I've had some difficulty walking the DECL_INITIAL from within a separate pass but I

Re: Processing global static (or const) variables

2010-04-05 Thread Richard Guenther
On Mon, Apr 5, 2010 at 3:50 PM, Ehren Metcalfe wrote: > Hello, > > I'm trying to develop a dead code finder using gcc and mozilla's > treehydra but I've hit a wall processing certain initializations of > global variables. > > In order to mark a function declaration whenever its address is held > i