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/c-omp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gcc/c-family/c-omp.c') 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