public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "ramana at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/64379] VFP register restore in ARM epilogue can break indirect tailcalls
Date: Tue, 13 Jan 2015 15:12:00 -0000	[thread overview]
Message-ID: <bug-64379-4-9anSgRB9yy@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-64379-4@http.gcc.gnu.org/bugzilla/>

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64379

Ramana Radhakrishnan <ramana at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P4
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2015-01-13
                 CC|                            |ramana at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #8 from Ramana Radhakrishnan <ramana at gcc dot gnu.org> ---
(In reply to Donn Seeley from comment #7)
> Re -mapcs-frame:  Yes, the failure is due to code in
> arm_expand_epilogue_apcs_frame() that explicitly requires / stomps on IP in
> order to restore VFP/NEON registers.  Sorry, I should have mentioned that. 
> The indirect tailcall register is chosen from CALLER_SAVE_REGS via the "Cs"
> constraint, and CALLER_SAVE_REGS contains the arg regs plus IP; if the arg
> regs are in use, then the tailcall register ends up being IP.  Hence the
> conflict.


Uggh - these ancient options in the backend. mapcs-frame is quite ancient and
isn't really something that's tested very often, no wonder it's rotting. In
this case we seem to have regressed something that worked earlier, I do wonder
if the fix here is to just turn IP regnum into a fixed register in the presence
of mapcs-frame.


regards
Ramana


  parent reply	other threads:[~2015-01-13 15:12 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-12-22 22:20 [Bug c/64379] New: " donn.seeley at windriver dot com
2014-12-22 22:21 ` [Bug c/64379] " donn.seeley at windriver dot com
2014-12-22 22:22 ` [Bug target/64379] " donn.seeley at windriver dot com
2014-12-23  0:15 ` donn.seeley at windriver dot com
2014-12-23  9:33 ` mikpelinux at gmail dot com
2014-12-23 15:39 ` mikpelinux at gmail dot com
2014-12-23 15:49 ` donn.seeley at windriver dot com
2015-01-13 15:12 ` ramana at gcc dot gnu.org [this message]
2015-01-13 16:05 ` ebotcazou at gcc dot gnu.org
2015-01-13 16:16 ` ramana at gcc dot gnu.org
2015-01-13 16:27 ` ebotcazou at gcc dot gnu.org
2015-01-13 21:06 ` donn.seeley at windriver dot com
2015-01-13 21:09 ` donn.seeley at windriver dot com
2015-01-14  8:33 ` ramana at gcc dot gnu.org
2015-01-14 10:19 ` ebotcazou at gcc dot gnu.org

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-64379-4-9anSgRB9yy@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: link
Be 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).