2019-11-14 Jakub Jelinek <jakub@redhat.com>
+ * c-omp.c (c_omp_check_context_selector): Add nvidia to the list of
+ valid vendors.
+
* c-omp.c (c_omp_check_context_selector): Handle name lists
containing string literals. Don't diagnose atomic_default_mem_order
with multiple props.
"host", "nohost", "cpu", "gpu", "fpga", "any", NULL };
static const char *const vendor[] = {
"amd", "arm", "bsc", "cray", "fujitsu", "gnu", "ibm", "intel",
- "llvm", "pgi", "ti", "unknown", NULL };
+ "llvm", "nvidia", "pgi", "ti", "unknown", NULL };
static const char *const extension[] = { NULL };
static const char *const atomic_default_mem_order[] = {
"seq_cst", "relaxed", "acq_rel", NULL };
2019-11-14 Jakub Jelinek <jakub@redhat.com>
+ * c-c++-common/gomp/declare-variant-3.c: Add testcase for vendor nvidia.
+
* c-c++-common/gomp/declare-variant-2.c: Adjust expected diagnostics,
add a test for atomic_default_mem_order with a string literal.
* c-c++-common/gomp/declare-variant-3.c: Use string literal props