public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
From: qu <xianmiao@gcc.gnu.org>
To: gcc-cvs@gcc.gnu.org
Subject: [gcc r12-1058] C-SKY: Fix FAIL of gcc.dg/torture/stackalign/builtin-return-2.c.
Date: Wed, 26 May 2021 06:37:08 +0000 (GMT)	[thread overview]
Message-ID: <20210526063708.0F56738515F8@sourceware.org> (raw)

https://gcc.gnu.org/g:155d3038c23002581eb29d59ea23e44b3758c6dc

commit r12-1058-g155d3038c23002581eb29d59ea23e44b3758c6dc
Author: Geng Qi <gengqi@linux.alibaba.com>
Date:   Fri Apr 30 21:02:37 2021 +0800

    C-SKY: Fix FAIL of gcc.dg/torture/stackalign/builtin-return-2.c.
    
    gcc/ChangeLog:
    
            * config/csky/csky.md (untyped_call): Emit clobber for return
            registers to mark them used.

Diff:
---
 gcc/config/csky/csky.md | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/gcc/config/csky/csky.md b/gcc/config/csky/csky.md
index b980d4c8fcb..f91d851cb2c 100644
--- a/gcc/config/csky/csky.md
+++ b/gcc/config/csky/csky.md
@@ -3258,6 +3258,10 @@
 
   emit_call_insn (gen_call (operands[0], const0_rtx));
 
+  for (int i = 0; i < XVECLEN (operands[2], 0); i++)
+    emit_clobber (SET_SRC (XVECEXP (operands[2], 0, i)));
+  emit_insn (gen_blockage ());
+
   for (i = 0; i < XVECLEN (operands[2], 0); i++)
     {
       rtx set = XVECEXP (operands[2], 0, i);


                 reply	other threads:[~2021-05-26  6:37 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20210526063708.0F56738515F8@sourceware.org \
    --to=xianmiao@gcc.gnu.org \
    --cc=gcc-cvs@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).