Re: Move DECL_RESULT into function_decl

2014-07-16 Thread Jan Hubicka
> On 07/15/2014 11:29 AM, Jan Hubicka wrote: > >Yep, you are right. I was looking into this, too. I think dump_ada_template > >should be moved into C++ FE somehow because it deals with C++ trees. > >What would be most appropriate way to do so? > > I suppose we could pass a pointer to it into dump

Re: Move DECL_RESULT into function_decl

2014-07-15 Thread Jason Merrill
On 07/15/2014 11:29 AM, Jan Hubicka wrote: Yep, you are right. I was looking into this, too. I think dump_ada_template should be moved into C++ FE somehow because it deals with C++ trees. What would be most appropriate way to do so? I suppose we could pass a pointer to it into dump_ada_specs l

Re: Move DECL_RESULT into function_decl

2014-07-15 Thread Jan Hubicka
> On 07/15/2014 10:19 AM, Jan Hubicka wrote: > >@@ -1722,7 +1722,7 @@ dump_ada_template (pretty_printer *buffe > >/* DECL_VINDEX is DECL_TEMPLATE_INSTANTIATIONS in this context. */ > >tree inst = DECL_VINDEX (t); > >/* DECL_RESULT_FLD is DECL_TEMPLATE_RESULT in this context. */ > >-

Re: Move DECL_RESULT into function_decl

2014-07-15 Thread Jason Merrill
On 07/15/2014 10:19 AM, Jan Hubicka wrote: @@ -1722,7 +1722,7 @@ dump_ada_template (pretty_printer *buffe /* DECL_VINDEX is DECL_TEMPLATE_INSTANTIATIONS in this context. */ tree inst = DECL_VINDEX (t); /* DECL_RESULT_FLD is DECL_TEMPLATE_RESULT in this context. */ - tree result = D

Move DECL_RESULT into function_decl

2014-07-15 Thread Jan Hubicka
Hi, this patch continues by moving DECL_RESULT into FUNCTION_DECL. tree_decl_non_common becomes empty, but I decided to get rid of it in an followup patch - it needs more changes and doing it all at once would be bit convoluted. Bootstrappred/regtested x86_64-linux, OK? Honza * tree-co