diff options
author | Hans-Peter Nilsson <hp@axis.com> | 2023-03-03 21:23:06 +0100 |
---|---|---|
committer | Hans-Peter Nilsson <hp@bitrange.com> | 2023-03-07 02:23:57 +0100 |
commit | e43f970c7ff6aa7e410a59b275542db678c7f2d7 (patch) | |
tree | 1f0cd97ca4e3071f6bff54b6ec02a397169f2ec1 /gcc | |
parent | 318c9101a3bc24e4cd1a89eeb52531988a11c89f (diff) | |
download | gcc-e43f970c7ff6aa7e410a59b275542db678c7f2d7.zip gcc-e43f970c7ff6aa7e410a59b275542db678c7f2d7.tar.gz gcc-e43f970c7ff6aa7e410a59b275542db678c7f2d7.tar.bz2 |
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.
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/gcc.dg/plugin/must-tail-call-1.c | 1 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/plugin/must-tail-call-2.c | 1 |
2 files changed, 2 insertions, 0 deletions
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 1495a48..3a6d4cc 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 c6dfecd..d51d15c 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" } */ |