public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "hjl at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug target/66819] gcc.target/i386/pr65753.c fails with -fPIC -m32 -O2 -mregparm=3 Date: Fri, 10 Jul 2015 20:30:00 -0000 [thread overview] Message-ID: <bug-66819-4-QsMWBw70hx@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-66819-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66819 --- Comment #1 from hjl at gcc dot gnu.org <hjl at gcc dot gnu.org> --- Author: hjl Date: Fri Jul 10 20:30:10 2015 New Revision: 225688 URL: https://gcc.gnu.org/viewcvs?rev=225688&root=gcc&view=rev Log: 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. Added: trunk/gcc/testsuite/gcc.target/i386/pr66819-1.c trunk/gcc/testsuite/gcc.target/i386/pr66819-2.c trunk/gcc/testsuite/gcc.target/i386/pr66819-3.c trunk/gcc/testsuite/gcc.target/i386/pr66819-4.c trunk/gcc/testsuite/gcc.target/i386/pr66819-5.c Modified: trunk/gcc/ChangeLog trunk/gcc/config/i386/i386.c trunk/gcc/config/i386/i386.h trunk/gcc/testsuite/ChangeLog
next prev parent reply other threads:[~2015-07-10 20:30 UTC|newest] Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top 2015-07-09 2:56 [Bug target/66819] New: " hjl.tools at gmail dot com 2015-07-10 20:30 ` hjl at gcc dot gnu.org [this message] 2015-07-11 18:28 ` [Bug target/66819] " hjl.tools at gmail dot com
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-66819-4-QsMWBw70hx@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).