Fix assertion checking failure with tail call
authorEric Botcazou <ebotcazou@adacore.com>
Thu, 17 Sep 2020 10:58:02 +0000 (12:58 +0200)
committerEric Botcazou <ebotcazou@adacore.com>
Thu, 17 Sep 2020 11:00:24 +0000 (13:00 +0200)
commit225a08220e444371ae4867b3e2ace275d30af3d3
tree9b0e3d8c34a1b39d8acb77ad87cc19362865dc2a
parent80cbca32464ae05931c0ae425eec7d1f373946eb
Fix assertion checking failure with tail call

gcc/ChangeLog:
PR middle-end/97078
* function.c (use_register_for_decl): Test cfun->tail_call_marked
for a parameter here instead of...
(assign_parm_setup_reg): ...here.

gcc/testsuite/ChangeLog:
* gcc.dg/pr97078.c: New test.
gcc/function.c
gcc/testsuite/gcc.dg/pr97078.c [new file with mode: 0644]