re PR tree-optimization/84739 (ICE in get_value_for_expr, at tree-ssa-ccp.c:649)
authorJakub Jelinek <jakub@redhat.com>
Thu, 8 Mar 2018 06:56:59 +0000 (07:56 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 8 Mar 2018 06:56:59 +0000 (07:56 +0100)
commit686faaece353242d733dec4eb47647ef0ae1335f
treead47591876053c5ce660972384957cf9d2935ea7
parentfe6bd21a0bda55abf859223648f31710772eb1eb
re PR tree-optimization/84739 (ICE in get_value_for_expr, at tree-ssa-ccp.c:649)

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.

From-SVN: r258351
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr84739.c [new file with mode: 0644]
gcc/tree-tailcall.c