public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r13-6514] testsuite: Gate gcc.dg/plugin/must-tail-call-1.c and -2.c on tail_call
@ 2023-03-07  1:24 Hans-Peter Nilsson
  0 siblings, 0 replies; only message in thread
From: Hans-Peter Nilsson @ 2023-03-07  1:24 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:e43f970c7ff6aa7e410a59b275542db678c7f2d7

commit r13-6514-ge43f970c7ff6aa7e410a59b275542db678c7f2d7
Author: Hans-Peter Nilsson <hp@axis.com>
Date:   Fri Mar 3 21:23:06 2023 +0100

    testsuite: Gate gcc.dg/plugin/must-tail-call-1.c and -2.c on tail_call
    
    While gcc.dg/plugin/must-tail-call-2.c passes for all targets even
    without this, the error message is, for a target like cris-elf that
    doesn't implement sibling calls: "error: cannot tail-call: machine
    description does not have a sibcall_epilogue instruction pattern"
    rather than "error: cannot tail-call: callee returns a structure".
    Also, it'd be confusing to exclude must-tail-call-1.c but not
    must-tail-call-2.c
    
            * gcc.dg/plugin/must-tail-call-1.c, gcc.dg/plugin/must-tail-call-2.c:
            Gate on effective target tail_call.

Diff:
---
 gcc/testsuite/gcc.dg/plugin/must-tail-call-1.c | 1 +
 gcc/testsuite/gcc.dg/plugin/must-tail-call-2.c | 1 +
 2 files changed, 2 insertions(+)

diff --git a/gcc/testsuite/gcc.dg/plugin/must-tail-call-1.c b/gcc/testsuite/gcc.dg/plugin/must-tail-call-1.c
index 1495a48232a..3a6d4cceaba 100644
--- a/gcc/testsuite/gcc.dg/plugin/must-tail-call-1.c
+++ b/gcc/testsuite/gcc.dg/plugin/must-tail-call-1.c
@@ -1,3 +1,4 @@
+/* { dg-do compile { target tail_call } } */
 /* { dg-options "-fdelayed-branch" { target sparc*-*-* } } */
 
 extern void abort (void);
diff --git a/gcc/testsuite/gcc.dg/plugin/must-tail-call-2.c b/gcc/testsuite/gcc.dg/plugin/must-tail-call-2.c
index c6dfecd3245..d51d15cc087 100644
--- a/gcc/testsuite/gcc.dg/plugin/must-tail-call-2.c
+++ b/gcc/testsuite/gcc.dg/plugin/must-tail-call-2.c
@@ -1,3 +1,4 @@
+/* { dg-do compile { target tail_call } } */
 /* Allow nested functions.  */
 /* { dg-options "-Wno-pedantic" } */

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-03-07  1:24 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-07  1:24 [gcc r13-6514] testsuite: Gate gcc.dg/plugin/must-tail-call-1.c and -2.c on tail_call Hans-Peter Nilsson

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).