Hi!

On 2019-06-20T12:39:48+0200, Tom de Vries <tdevr...@suse.de> wrote:
> Add missing dg-require-effective-target nonlocal_goto.
>
> Tested on nvptx.

> --- a/gcc/testsuite/gcc.dg/pr88870.c
> +++ b/gcc/testsuite/gcc.dg/pr88870.c
> @@ -1,5 +1,6 @@
>  /* PR rtl-optimization/88870 */
>  /* { dg-do compile } */
> +/* { dg-require-effective-target nonlocal_goto } */
>  /* { dg-options "-O1 -fexceptions -fnon-call-exceptions -ftrapv 
> -fno-tree-dominator-opts" } */

Pushed to trunk branch commit 0e602b2315f3cdf9a50441b28cabb8b204827492
"'gcc.dg/pr88870.c': don't 'dg-require-effective-target nonlocal_goto'",
see attached.


Grüße
 Thomas


>From 0e602b2315f3cdf9a50441b28cabb8b204827492 Mon Sep 17 00:00:00 2001
From: Thomas Schwinge <tschwi...@baylibre.com>
Date: Thu, 6 Feb 2025 16:14:27 +0100
Subject: [PATCH] 'gcc.dg/pr88870.c': don't 'dg-require-effective-target
 nonlocal_goto'

I confirm that back then, 'gcc.dg/pr88870.c' for nvptx failed due to
'sorry, unimplemented: target cannot support nonlocal goto', however at some
(indeterminate) point in time, that must've disappeared, and we now don't have
to 'dg-require-effective-target nonlocal_goto' anymore, and therefore get:

    [-UNSUPPORTED:-]{+PASS:+} gcc.dg/pr88870.c {+(test for excess errors)+}

(And, if ever necessary again, this nowadays probably should
'dg-require-effective-target exceptions' instead of 'nonlocal_goto'.)

	gcc/testsuite/
	* gcc.dg/pr88870.c: Don't 'dg-require-effective-target nonlocal_goto'.
---
 gcc/testsuite/gcc.dg/pr88870.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/gcc/testsuite/gcc.dg/pr88870.c b/gcc/testsuite/gcc.dg/pr88870.c
index 81f686bd972..3f46f32f3ee 100644
--- a/gcc/testsuite/gcc.dg/pr88870.c
+++ b/gcc/testsuite/gcc.dg/pr88870.c
@@ -1,6 +1,5 @@
 /* PR rtl-optimization/88870 */
 /* { dg-do compile } */
-/* { dg-require-effective-target nonlocal_goto } */
 /* { dg-options "-O1 -fexceptions -fnon-call-exceptions -ftrapv -fno-tree-dominator-opts" } */
 
 int a, b;
-- 
2.34.1

Reply via email to