Re: [PATCH] Fix tail recursion (PR tree-optimization/84739)

2018-03-07 Thread Jeff Law
On 03/07/2018 02:42 PM, Jakub Jelinek wrote: > Hi! > > Before Honza introduced recursive_call_p, this tree-tailcall.c snipped > has been guarded with if (func == current_function_decl), so what we used > for DECL_ARGUMENTS didn't really matter. But as it can now be some alias > to it, we really

[PATCH] Fix tail recursion (PR tree-optimization/84739)

2018-03-07 Thread Jakub Jelinek
Hi! Before Honza introduced recursive_call_p, this tree-tailcall.c snipped has been guarded with if (func == current_function_decl), so what we used for DECL_ARGUMENTS didn't really matter. But as it can now be some alias to it, we really want to check that the current function's arguments match