PR tree-optimization/84739
commit8b84a61218a2dd83111889846d74005d8e727954
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 8 Mar 2018 06:56:59 +0000 (8 06:56 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 8 Mar 2018 06:56:59 +0000 (8 06:56 +0000)
treead47591876053c5ce660972384957cf9d2935ea7
parentdb4f7f88497d7a823854f87f6650bdc12b584372
PR tree-optimization/84739
* tree-tailcall.c (find_tail_calls): Check call arguments against
DECL_ARGUMENTS (current_function_decl) rather than
DECL_ARGUMENTS (func) when checking for tail recursion.

* gcc.dg/pr84739.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@258351 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr84739.c [new file with mode: 0644]
gcc/tree-tailcall.c