diff options
author | Jakub Jelinek <jakub@redhat.com> | 2019-10-25 00:29:09 +0200 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2019-10-25 00:29:09 +0200 |
commit | 135df52cc3f1ef90092ab02a01c4dabc7fd0ed18 (patch) | |
tree | 788a3c845a393f73563f1c4dba757939c85265ff /gcc/gimplify.h | |
parent | f8cb8bcde13df2f2b1a996567c849ec512eec210 (diff) | |
download | gcc-135df52cc3f1ef90092ab02a01c4dabc7fd0ed18.tar.gz |
gimplify.h (omp_construct_selector_matches): Declare.
* gimplify.h (omp_construct_selector_matches): Declare.
* gimplify.c (struct gimplify_omp_ctx): Add code member.
(gimplify_call_expr): Call omp_resolve_declare_variant and remap
called function if needed for flag_openmp.
(gimplify_scan_omp_clauses): Set ctx->code.
(omp_construct_selector_matches): New function.
* omp-general.h (omp_constructor_traits_to_codes,
omp_context_selector_matches, omp_resolve_declare_variant): Declare.
* omp-general.c (omp_constructor_traits_to_codes,
omp_context_selector_matches, omp_resolve_declare_variant): New
functions.
c-family/
* c-common.h (c_omp_context_selector_matches): Remove.
* c-omp.c (c_omp_context_selector_matches): Remove.
* c-attribs.c (c_common_attribute_table): Add
"omp declare target {host,nohost,block}" attributes.
c/
* c-parser.c (c_finish_omp_declare_variant): Use
omp_context_selector_matches instead of
c_omp_context_selector_matches.
* c-decl.c (c_decl_attributes): Add "omp declare target block"
attribute in between declare target and end declare target
pragmas.
cp/
* decl2.c (cplus_decl_attributes): Add "omp declare target block"
attribute in between declare target and end declare target
pragmas.
testsuite/
* c-c++-common/gomp/declare-variant-8.c: New test.
From-SVN: r277427
Diffstat (limited to 'gcc/gimplify.h')
-rw-r--r-- | gcc/gimplify.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/gimplify.h b/gcc/gimplify.h index 6c997a769cd..601b82b12bd 100644 --- a/gcc/gimplify.h +++ b/gcc/gimplify.h @@ -75,6 +75,8 @@ extern void omp_firstprivatize_variable (struct gimplify_omp_ctx *, tree); extern enum gimplify_status gimplify_expr (tree *, gimple_seq *, gimple_seq *, bool (*) (tree), fallback_t); +HOST_WIDE_INT omp_construct_selector_matches (enum tree_code *, int); + extern void gimplify_type_sizes (tree, gimple_seq *); extern void gimplify_one_sizepos (tree *, gimple_seq *); extern gbind *gimplify_body (tree, bool); |