diff options
author | Jakub Jelinek <jakub@redhat.com> | 2019-11-14 09:13:01 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2019-11-14 09:13:01 +0100 |
commit | d0ec7c935f0c961b13f75c906b8621e35ce1ace5 (patch) | |
tree | e981c8fcf78acc272b277167c9dc58846f5939b7 /gcc | |
parent | b2417b59d4be2e5e882dec5ae3b373f69331d6e2 (diff) | |
download | gcc-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')
-rw-r--r-- | gcc/c-family/ChangeLog | 3 | ||||
-rw-r--r-- | gcc/c-family/c-omp.c | 2 | ||||
-rw-r--r-- | gcc/testsuite/ChangeLog | 2 | ||||
-rw-r--r-- | gcc/testsuite/c-c++-common/gomp/declare-variant-3.c | 2 |
4 files changed, 8 insertions, 1 deletions
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 <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. 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 }; diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 2b32bd2..fa87ca7 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,5 +1,7 @@ 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 diff --git a/gcc/testsuite/c-c++-common/gomp/declare-variant-3.c b/gcc/testsuite/c-c++-common/gomp/declare-variant-3.c index e1c37a0..d0800ff 100644 --- a/gcc/testsuite/c-c++-common/gomp/declare-variant-3.c +++ b/gcc/testsuite/c-c++-common/gomp/declare-variant-3.c @@ -145,3 +145,5 @@ void f75 (void); void f76 (void); #pragma omp declare variant (f13) match (device={kind("any",any)}) void f77 (void); +#pragma omp declare variant (f13) match (implementation={vendor(nvidia)}) +void f78 (void); |