From d0ec7c935f0c961b13f75c906b8621e35ce1ace5 Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Thu, 14 Nov 2019 09:13:01 +0100 Subject: c-omp.c (c_omp_check_context_selector): Add nvidia to the list of valid vendors. * c-omp.c (c_omp_check_context_selector): Add nvidia to the list of valid vendors. * c-c++-common/gomp/declare-variant-3.c: Add testcase for vendor nvidia. From-SVN: r278203 --- gcc/c-family/ChangeLog | 3 +++ gcc/c-family/c-omp.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'gcc/c-family') diff --git a/gcc/c-family/ChangeLog b/gcc/c-family/ChangeLog index 682355d..336159d 100644 --- a/gcc/c-family/ChangeLog +++ b/gcc/c-family/ChangeLog @@ -1,5 +1,8 @@ 2019-11-14 Jakub Jelinek + * 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. diff --git a/gcc/c-family/c-omp.c b/gcc/c-family/c-omp.c index 7d8eb32..a4be2d6 100644 --- a/gcc/c-family/c-omp.c +++ b/gcc/c-family/c-omp.c @@ -2173,7 +2173,7 @@ c_omp_check_context_selector (location_t loc, tree ctx) "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 }; -- cgit v1.1