summaryrefslogtreecommitdiff
path: root/gcc/optabs.h
diff options
context:
space:
mode:
authorhjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4>2015-07-10 20:30:10 +0000
committerhjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4>2015-07-10 20:30:10 +0000
commit5679c3e913c736e4aaf682482ce3fd4505a92f15 (patch)
tree853a4dab0f9999a5a26b2b91f5029e74503d9032 /gcc/optabs.h
parented2b2eb27d082049ceafef5f4723724f39930ed4 (diff)
downloadgcc-5679c3e913c736e4aaf682482ce3fd4505a92f15.tar.gz
Allow indirect sibcall with register arguments
Indirect sibcall with register arguments is OK when there is register available for argument passing. gcc/ PR target/66819 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow indirect sibcall with register arguments if register available for argument passing. (init_cumulative_args): Set cfun->machine->arg_reg_available to (cum->nregs > 0) or to true if function has a variable argument list. (function_arg_advance_32): Set cfun->machine->arg_reg_available to false if cum->nregs <= 0. * config/i386/i386.h (machine_function): Add arg_reg_available. gcc/testsuite/ PR target/66819 * gcc.target/i386/pr66819-1.c: New test. * gcc.target/i386/pr66819-2.c: Likewise. * gcc.target/i386/pr66819-3.c: Likewise. * gcc.target/i386/pr66819-4.c: Likewise. * gcc.target/i386/pr66819-5.c: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@225688 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/optabs.h')
0 files changed, 0 insertions, 0 deletions