aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-family/c-omp.c
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2019-11-14 09:13:01 +0100
committerJakub Jelinek <jakub@gcc.gnu.org>2019-11-14 09:13:01 +0100
commitd0ec7c935f0c961b13f75c906b8621e35ce1ace5 (patch)
treee981c8fcf78acc272b277167c9dc58846f5939b7 /gcc/c-family/c-omp.c
parentb2417b59d4be2e5e882dec5ae3b373f69331d6e2 (diff)
downloadgcc-d0ec7c935f0c961b13f75c906b8621e35ce1ace5.zip
gcc-d0ec7c935f0c961b13f75c906b8621e35ce1ace5.tar.gz
gcc-d0ec7c935f0c961b13f75c906b8621e35ce1ace5.tar.bz2
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
Diffstat (limited to 'gcc/c-family/c-omp.c')
-rw-r--r--gcc/c-family/c-omp.c2
1 files changed, 1 insertions, 1 deletions
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 };