This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/84564] error: unable to find a register to spill with -mforce-indirect-call
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 05 Mar 2018 16:25:14 +0000
- Subject: [Bug target/84564] error: unable to find a register to spill with -mforce-indirect-call
- Auto-submitted: auto-generated
- References: <bug-84564-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84564
--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Mon Mar 5 16:24:43 2018
New Revision: 258256
URL: https://gcc.gnu.org/viewcvs?rev=258256&root=gcc&view=rev
Log:
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.
Added:
trunk/gcc/testsuite/gcc.target/i386/pr84564.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/config/i386/i386.c
trunk/gcc/testsuite/ChangeLog