re PR target/84564 (error: unable to find a register to spill with -mforce-indirect...
authorJakub Jelinek <jakub@gcc.gnu.org>
Mon, 5 Mar 2018 16:24:43 +0000 (17:24 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Mon, 5 Mar 2018 16:24:43 +0000 (17:24 +0100)
commit537400180d36469bf97daeb28d23161fe9ed022a
tree4d83d3726e4fba22de7c4e2671152fd8e8eb1ebb
parenta2460abb82e2fd3c45edf5e9f4ff61151ef8d815
re PR target/84564 (error: unable to find a register to spill with -mforce-indirect-call)

PR target/84564
* config/i386/i386.c (ix86_function_ok_for_sibcall): Check for
regparm >= 3 with no arg reg available also for calls with
flag_force_indirect_call.  Pass decl to ix86_function_regparm.

* gcc.target/i386/pr84564.c: New test.

From-SVN: r258256
gcc/ChangeLog
gcc/config/i386/i386.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/i386/pr84564.c [new file with mode: 0644]