public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-1058] C-SKY: Fix FAIL of gcc.dg/torture/stackalign/builtin-return-2.c.
@ 2021-05-26 6:37 qu
0 siblings, 0 replies; only message in thread
From: qu @ 2021-05-26 6:37 UTC (permalink / raw)
To: gcc-cvs
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);
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-05-26 6:37 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-26 6:37 [gcc r12-1058] C-SKY: Fix FAIL of gcc.dg/torture/stackalign/builtin-return-2.c qu
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).