omp-general.h (omp_context_selector_set_compare): Declare.
authorJakub Jelinek <jakub@redhat.com>
Fri, 1 Nov 2019 23:30:55 +0000 (00:30 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 1 Nov 2019 23:30:55 +0000 (00:30 +0100)
commit917dd789e55c88123d804a8a411e4a61ee7b6e43
treef9f2f596da38caa176b5dafe2a18ac61f1957f4f
parentf968ef9b8df2bc2287e5e7e87299e5a2a44e8c94
omp-general.h (omp_context_selector_set_compare): Declare.

* omp-general.h (omp_context_selector_set_compare): Declare.
* omp-general.c (omp_construct_simd_compare,
omp_context_selector_props_compare, omp_context_selector_set_compare,
omp_context_selector_compare): New functions.
(omp_resolve_declare_variant): Prune variants that are strict subset
of another variant.
c-family/
* c-omp.c (c_omp_mark_declare_variant): Use
omp_context_selector_set_compare.
testsuite/
* c-c++-common/gomp/declare-variant-6.c: Expect construct rather than
constructor in diagnostic messages.
* c-c++-common/gomp/declare-variant-7.c: Likewise.
* c-c++-common/gomp/declare-variant-11.c: New test.

From-SVN: r277734
gcc/ChangeLog
gcc/c-family/ChangeLog
gcc/c-family/c-omp.c
gcc/omp-general.c
gcc/omp-general.h
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/gomp/declare-variant-11.c [new file with mode: 0644]
gcc/testsuite/c-c++-common/gomp/declare-variant-6.c
gcc/testsuite/c-c++-common/gomp/declare-variant-7.c