This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug target/84564] error: unable to find a register to spill with -mforce-indirect-call


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]