From 7809aa1128250c9e90fde33a4fc0c88a733f8e1a Mon Sep 17 00:00:00 2001 From: Thomas Schwinge <tschwinge@baylibre.com> Date: Thu, 6 Feb 2025 16:20:50 +0100 Subject: [PATCH] For a few test cases, clarify dependance on effective-target 'nonlocal_goto' into 'exceptions' For example, for nvptx, these test cases currently indeed fail with 'sorry, unimplemented: target cannot support nonlocal goto'. However, that's just an artefact of non-existing support for exception handling, and these test cases already require effective-target 'exceptions'. gcc/testsuite/ * gcc.dg/cleanup-12.c: Don't 'dg-skip-if "" { ! nonlocal_goto }'. * gcc.dg/cleanup-13.c: Likewise. * gcc.dg/cleanup-5.c: Likewise. * gcc.dg/gimplefe-44.c: Don't 'dg-require-effective-target nonlocal_goto'. --- gcc/testsuite/gcc.dg/cleanup-12.c | 1 - gcc/testsuite/gcc.dg/cleanup-13.c | 1 - gcc/testsuite/gcc.dg/cleanup-5.c | 1 - gcc/testsuite/gcc.dg/gimplefe-44.c | 1 - 4 files changed, 4 deletions(-) diff --git a/gcc/testsuite/gcc.dg/cleanup-12.c b/gcc/testsuite/gcc.dg/cleanup-12.c index 2171e35de9da..5bc7216af673 100644 --- a/gcc/testsuite/gcc.dg/cleanup-12.c +++ b/gcc/testsuite/gcc.dg/cleanup-12.c @@ -3,7 +3,6 @@ /* { dg-do run } */ /* { dg-options "-O2 -fexceptions" } */ /* { dg-skip-if "" { "ia64-*-hpux11.*" } } */ -/* { dg-skip-if "" { ! nonlocal_goto } } */ /* { dg-require-effective-target exceptions } */ /* Verify unwind info in presence of alloca. */ diff --git a/gcc/testsuite/gcc.dg/cleanup-13.c b/gcc/testsuite/gcc.dg/cleanup-13.c index 86cfae09e77c..6d2adcac4300 100644 --- a/gcc/testsuite/gcc.dg/cleanup-13.c +++ b/gcc/testsuite/gcc.dg/cleanup-13.c @@ -6,7 +6,6 @@ /* { dg-do run } */ /* { dg-options "-fexceptions" } */ /* { dg-skip-if "" { "ia64-*-hpux11.*" } } */ -/* { dg-skip-if "" { ! nonlocal_goto } } */ /* { dg-require-effective-target exceptions } */ /* Verify DW_OP_* handling in the unwinder. */ diff --git a/gcc/testsuite/gcc.dg/cleanup-5.c b/gcc/testsuite/gcc.dg/cleanup-5.c index 9ed2a7c95f5f..43e8686ab2bc 100644 --- a/gcc/testsuite/gcc.dg/cleanup-5.c +++ b/gcc/testsuite/gcc.dg/cleanup-5.c @@ -2,7 +2,6 @@ /* { dg-do run } */ /* { dg-options "-fexceptions" } */ /* { dg-skip-if "" { "ia64-*-hpux11.*" } } */ -/* { dg-skip-if "" { ! nonlocal_goto } } */ /* { dg-require-effective-target exceptions } */ /* Verify that cleanups work with exception handling. */ diff --git a/gcc/testsuite/gcc.dg/gimplefe-44.c b/gcc/testsuite/gcc.dg/gimplefe-44.c index 3c83d4946f27..a1e32ad69273 100644 --- a/gcc/testsuite/gcc.dg/gimplefe-44.c +++ b/gcc/testsuite/gcc.dg/gimplefe-44.c @@ -1,7 +1,6 @@ /* { dg-do compile } */ /* { dg-require-effective-target exceptions } */ /* { dg-options "-fexceptions -fgimple -fdump-tree-eh-eh" } */ -/* { dg-require-effective-target nonlocal_goto } */ void __GIMPLE foo() { -- GitLab