[Openmp-commits] [PATCH] D142173: [OpenMP] Disable omp-atomic-compare-signedness.c if the compiler for testing is GCC

Shilei Tian via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Thu Jan 19 20:27:14 PST 2023


tianshilei1992 created this revision.
tianshilei1992 added reviewers: jdoerfert, tlwilmar, AndreyChurbanov, jlpeyton.
Herald added subscribers: guansong, yaxunl.
Herald added a project: All.
tianshilei1992 requested review of this revision.
Herald added subscribers: openmp-commits, sstefan1.
Herald added a project: OpenMP.

GCC doesn't support `-fopenmp-version`, causing test failure if the compiler used
for testing is GCC.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D142173

Files:
  openmp/runtime/test/atomic/omp-atomic-compare-signedness.c


Index: openmp/runtime/test/atomic/omp-atomic-compare-signedness.c
===================================================================
--- openmp/runtime/test/atomic/omp-atomic-compare-signedness.c
+++ openmp/runtime/test/atomic/omp-atomic-compare-signedness.c
@@ -6,6 +6,10 @@
 // RUN: %libomp-compile -fopenmp-version=51
 // RUN: %libomp-run | FileCheck %s
 
+// This test uses -fopenmp-version, which is not a compiler flag that GCC
+// supports.
+// UNSUPPORTED: gcc
+
 // High parallelism increases our chances of detecting a lack of atomicity.
 #define NUM_THREADS_TRY 256
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D142173.490705.patch
Type: text/x-patch
Size: 580 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20230120/001d0e08/attachment.bin>


More information about the Openmp-commits mailing list