diff options
author | Jakub Jelinek <jakub@redhat.com> | 2019-11-02 00:30:55 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2019-11-02 00:30:55 +0100 |
commit | 917dd789e55c88123d804a8a411e4a61ee7b6e43 (patch) | |
tree | f9f2f596da38caa176b5dafe2a18ac61f1957f4f /gcc/omp-general.h | |
parent | f968ef9b8df2bc2287e5e7e87299e5a2a44e8c94 (diff) | |
download | gcc-917dd789e55c88123d804a8a411e4a61ee7b6e43.zip gcc-917dd789e55c88123d804a8a411e4a61ee7b6e43.tar.gz gcc-917dd789e55c88123d804a8a411e4a61ee7b6e43.tar.bz2 |
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
Diffstat (limited to 'gcc/omp-general.h')
-rw-r--r-- | gcc/omp-general.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/omp-general.h b/gcc/omp-general.h index c0c294d..c6f95eb 100644 --- a/gcc/omp-general.h +++ b/gcc/omp-general.h @@ -86,6 +86,7 @@ extern poly_uint64 omp_max_vf (void); extern int omp_max_simt_vf (void); extern int omp_constructor_traits_to_codes (tree, enum tree_code *); extern int omp_context_selector_matches (tree); +extern int omp_context_selector_set_compare (const char *, tree, tree); extern tree omp_resolve_declare_variant (tree); extern tree oacc_launch_pack (unsigned code, tree device, unsigned op); extern tree oacc_replace_fn_attrib_attr (tree attribs, tree dims); |