Re: GSoc-2015: Modular GCC (RFC on refactoring)

2015-04-23 Thread Jeff Law
On 03/18/2015 01:21 PM, Oleg Endo wrote: On Tue, 2015-03-17 at 22:31 -0600, Jeff Law wrote: I'm not a big fan of keeping the FOR_EACH_blah style iterator and would prefer to use real C++ iterators. But it ought to give you some ideas about how to start breaking these things out. BTW I've tri

Re: GSoc-2015: Modular GCC (RFC on refactoring)

2015-03-18 Thread Oleg Endo
On Tue, 2015-03-17 at 22:31 -0600, Jeff Law wrote: > I'm not a big fan of keeping the FOR_EACH_blah style iterator and would > prefer to use real C++ iterators. But it ought to give you some ideas > about how to start breaking these things out. BTW I've tried to propose to start doing that (us

Re: GSoc-2015: Modular GCC (RFC on refactoring)

2015-03-17 Thread Trevor Saunders
On Tue, Mar 17, 2015 at 10:36:05PM -0600, Jeff Law wrote: > On 03/17/2015 10:32 PM, Trevor Saunders wrote: > > > >>2. Lists, list nodes and list iterators should be objects of distinct > >>types. In this case, header file function.h gets additional dependency, > >>because struct rtldata contains in

Re: GSoc-2015: Modular GCC (RFC on refactoring)

2015-03-17 Thread Jeff Law
On 03/17/2015 10:32 PM, Trevor Saunders wrote: 2. Lists, list nodes and list iterators should be objects of distinct types. In this case, header file function.h gets additional dependency, because struct rtldata contains insn/expr lists as members; currently they are pointers, so a forward decl

Re: GSoc-2015: Modular GCC (RFC on refactoring)

2015-03-17 Thread Trevor Saunders
On Wed, Mar 18, 2015 at 06:50:11AM +0300, Mikhail Maltsev wrote: > 07.03.2015 18:41, Jeff Law wrote: > > One potentially easy project there would be to take David Malcolm's work to > > turn the RTL EXPR & INSN lists into standard C++ forward lists. > > Started working on this. I need to understand

Re: GSoc-2015: Modular GCC (RFC on refactoring)

2015-03-17 Thread Jeff Law
On 03/17/2015 09:50 PM, Mikhail Maltsev wrote: 07.03.2015 18:41, Jeff Law wrote: One potentially easy project there would be to take David Malcolm's work to turn the RTL EXPR & INSN lists into standard C++ forward lists. Started working on this. I need to understand, if I'm moving in the right

Re: GSoc-2015: Modular GCC (RFC on refactoring)

2015-03-17 Thread Mikhail Maltsev
07.03.2015 18:41, Jeff Law wrote: > One potentially easy project there would be to take David Malcolm's work to > turn the RTL EXPR & INSN lists into standard C++ forward lists. Started working on this. I need to understand, if I'm moving in the right direction (i.e. whether my understanding of wh