Re: RFC: elimination of global state relating to passes

2013-04-04 Thread Richard Biener
On Wed, Apr 3, 2013 at 6:13 PM, David Malcolm dmalc...@redhat.com wrote: I'm working on my first gcc contribution, but it's a large patch, and I wanted to sound things out on this list. I want to eliminate/minimize global state within gcc, since I think doing so is a key part of making gcc

Re: RFC: elimination of global state relating to passes

2013-04-04 Thread David Malcolm
On Thu, 2013-04-04 at 10:42 +0200, Richard Biener wrote: Thanks for looking at this; comments inline throughout. On Wed, Apr 3, 2013 at 6:13 PM, David Malcolm dmalc...@redhat.com wrote: I'm working on my first gcc contribution, but it's a large patch, and I wanted to sound things out on

Re: RFC: elimination of global state relating to passes

2013-04-04 Thread Jakub Jelinek
On Thu, Apr 04, 2013 at 10:42:47AM +0200, Richard Biener wrote: I originally thought of using namespaces to fend off pass-specific globals, but eventually moving it all to a pass specific class would work, too. Note that there are some passes that have global data that is allocated and

RFC: elimination of global state relating to passes

2013-04-03 Thread David Malcolm
I'm working on my first gcc contribution, but it's a large patch, and I wanted to sound things out on this list. I want to eliminate/minimize global state within gcc, since I think doing so is a key part of making gcc more modular. Currently there's a lot of global state associated with passes: