Re: [RFC, PATCH 1/n] IPA C++ refactoring

2014-07-15 Thread Jan Hubicka
> I tried to mark it as protected, by there's usage that blocks that: > > In file included from ../../gcc/symtab.c:40:0: > ../../gcc/cgraph.h: In member function ?void symtab_node::unregister()?: > ../../gcc/cgraph.h:1178:16: error: ?cgraph_node* > cgraph_node::find_replacement()? is protected >

Re: [RFC, PATCH 1/n] IPA C++ refactoring

2014-07-14 Thread Martin Liška
Hello On 07/11/2014 12:07 PM, Jan Hubicka wrote: Hi, this first patch continues with rafactoring of IPA infrastructure so that we will have C++ API. In the patch, I transformed many global functions to members of symtab_node and cgraph_node. Example: cgraph_remove_node (struct cgraph_node

Re: [RFC, PATCH 1/n] IPA C++ refactoring

2014-07-11 Thread Jan Hubicka
> Hi, >this first patch continues with rafactoring of IPA infrastructure so that > we will have C++ API. In the patch, I transformed many global functions to > members of symtab_node and cgraph_node. > > Example: > cgraph_remove_node (struct cgraph_node *node) -> cgraph_node::remove (void) >