Jakub Jelinek <jakub at gcc dot> changed:

           What    |Removed                     |Added
             Status|NEW                         |ASSIGNED
           Assignee|unassigned at gcc dot      |jakub at gcc dot

--- Comment #4 from Jakub Jelinek <jakub at gcc dot> ---
Created attachment 43582

Untested fix.  With different gimple_call_fntype the ICE doesn't reproduce,
because if there is a mismatch between func's DECL_ARGUMENTS and the actual
arguments, the current code already rejects it as tail recursion.  In the past,
there used to be if (func == current_function_decl) condition and so what we
picked DECL_ARGUMENTS from didn't really matter, but now with the
recursive_call_p check it does.

Reply via email to