Re: Access to unused global variable declarations from a plugin

2012-01-09 Thread Richard Guenther
On Thu, Jan 5, 2012 at 5:16 PM, David Malcolm wrote: > I'm working on a GCC plugin which performs static analysis of Python > extension code [1] > > In various places I need access to a VAR_DECL for various globals from C > code, many of which potentially aren't used directly within the > compilat

Access to unused global variable declarations from a plugin

2012-01-05 Thread David Malcolm
I'm working on a GCC plugin which performs static analysis of Python extension code [1] In various places I need access to a VAR_DECL for various globals from C code, many of which potentially aren't used directly within the compilation unit. For example, I may need to reference this global: e