From ad8e2415d6e2dc7c6f1206e78d48f999ff6b0bc4 Mon Sep 17 00:00:00 2001 From: Christophe Lyon Date: Fri, 24 Jan 2020 09:07:58 +0000 Subject: [PATCH] debug/92763 Fix testcase to require fopenmp The testcase fails to link on targets without -pthread which is implied by -fopenmp. Use dg-require-effective-target fopenmp to avoid this problem. 2020-01-24 Christophe Lyon PR debug/92763 * g++.dg/debug/pr92763.C: Require fopenmp. --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/g++.dg/debug/pr92763.C | 1 + 2 files changed, 6 insertions(+) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index df547bcc2ae..c465ff99541 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2020-01-24 Christophe Lyon + + PR debug/92763 + * g++.dg/debug/pr92763.C: Require fopenmp. + 2020-01-23 David Malcolm PR analyzer/93367 diff --git a/gcc/testsuite/g++.dg/debug/pr92763.C b/gcc/testsuite/g++.dg/debug/pr92763.C index 8e32d60039f..16dccf3b56f 100644 --- a/gcc/testsuite/g++.dg/debug/pr92763.C +++ b/gcc/testsuite/g++.dg/debug/pr92763.C @@ -1,4 +1,5 @@ // { dg-do compile } +// { dg-require-effective-target fopenmp } // { dg-additional-options "-fno-var-tracking-assignments -fopenmp" } struct A -- 2.30.2