Re: Listing file-scope variables inside a pass

2007-03-21 Thread Brooks Moses
Karthikeyan M wrote: Oh ! So the releases on http://gcc.gnu.org/releases.html are for those who just want to use gcc and not hack it ? Is the latest release not done from the top of the trunk ? No; the top of the trunk is far too unstable for releasing. Release branches are split off of tru

Re: Listing file-scope variables inside a pass

2007-03-21 Thread Karthikeyan M
Oh ! So the releases on http://gcc.gnu.org/releases.html are for those who just want to use gcc and not hack it ? Is the latest release not done from the top of the trunk ? Is there any tool that I can use visualize the repository ? A tool that shows a visualization like http://en.wikipedia.org

Re: Listing file-scope variables inside a pass

2007-03-21 Thread Daniel Berlin
On 3/20/07, Karthikeyan M <[EMAIL PROTECTED]> wrote: Are these macros not a part of 4.1.2 ? I just picked up the tarball of the 4.1.2-core source. Which release has this code ? 4.2 or 4.3 You should never try to be doing real development work on GCC against anything but the development trunk (

Re: Listing file-scope variables inside a pass

2007-03-20 Thread Mike Stump
On Mar 20, 2007, at 4:39 PM, Karthikeyan M wrote: Are these macros not a part of 4.1.2 ? 4.1.2, what's that?! :-) I just picked up the tarball of the 4.1.2-core source. Pick something that says 2007 and 4.3... :-) In general, new work is best done against the top of the tree, that is t

Re: Listing file-scope variables inside a pass

2007-03-20 Thread Karthikeyan M
Are these macros not a part of 4.1.2 ? I just picked up the tarball of the 4.1.2-core source. Which release has this code ? Thanks a lot. On 3/20/07, Daniel Berlin <[EMAIL PROTECTED]> wrote: On 3/20/07, Karthikeyan M <[EMAIL PROTECTED]> wrote: > Thanks. > Where exactly should I be looking? cg

Re: Listing file-scope variables inside a pass

2007-03-20 Thread Daniel Berlin
On 3/20/07, Karthikeyan M <[EMAIL PROTECTED]> wrote: Thanks. Where exactly should I be looking? cgraph.c, cgraphunit.c, cgraph.h see cgraph_varpool_nodes, FOR_EACH_STATIC_VARIABLE (static here means having scope greater than a single function, it does not mean "all variables declared static in C

Re: Listing file-scope variables inside a pass

2007-03-20 Thread Karthikeyan M
Thanks. Where exactly should I be looking? Will the cgraph nodes also have global declarations that are never used inside any function . On 3/20/07, Daniel Berlin <[EMAIL PROTECTED]> wrote: On 3/20/07, Dave Korn <[EMAIL PROTECTED]> wrote: > On 19 March 2007 22:16, Karthikeyan M wrote: > > > What

Re: Listing file-scope variables inside a pass

2007-03-20 Thread Daniel Berlin
On 3/20/07, Dave Korn <[EMAIL PROTECTED]> wrote: On 19 March 2007 22:16, Karthikeyan M wrote: > What should I do if I want a list of all file-scope variables inside > my own pass ? > > The file_scope variable is local to c-decl.c . Is there a reason why > the scope holding variables are local to

RE: Listing file-scope variables inside a pass

2007-03-20 Thread Dave Korn
On 19 March 2007 22:16, Karthikeyan M wrote: > What should I do if I want a list of all file-scope variables inside > my own pass ? > > The file_scope variable is local to c-decl.c . Is there a reason why > the scope holding variables are local to c-decl.c ? Because we want to keep front-, mid