Re: Move DECL_ARGUMENTS into tree_function_decl

2014-07-14 Thread Jan Hubicka
> On 06/25/2014 02:51 AM, Jan Hubicka wrote: > >@@ -4388,7 +4388,8 @@ build_clone (tree fn, tree name) > >clone = copy_decl (fn); > >/* Reset the function name. */ > >DECL_NAME (clone) = name; > >- SET_DECL_ASSEMBLER_NAME (clone, NULL_TREE); > >+ if (TREE_CODE (clone) != TEMPLATE_DEC

Re: Move DECL_ARGUMENTS into tree_function_decl

2014-07-14 Thread Jason Merrill
On 06/25/2014 02:51 AM, Jan Hubicka wrote: @@ -4388,7 +4388,8 @@ build_clone (tree fn, tree name) clone = copy_decl (fn); /* Reset the function name. */ DECL_NAME (clone) = name; - SET_DECL_ASSEMBLER_NAME (clone, NULL_TREE); + if (TREE_CODE (clone) != TEMPLATE_DECL) +SET_DECL_A

Re: Move DECL_ARGUMENTS into tree_function_decl

2014-07-14 Thread Jan Hubicka
> Hi, > this patch moves DECL_ARGUMENTS into FUNCTION_DECL. For this I needed to > solve > reuse in C++ and objC frontends. In C++ I think I actually run out of places > to use for TEMPLATE_DECL (well, perhaps DECL_ATTRIBUTES but I would definitely > run out of pointers fro DECL_RESULT I want to