diff options
Diffstat (limited to 'gcc/cp/pt.c')
-rw-r--r-- | gcc/cp/pt.c | 26 |
1 files changed, 2 insertions, 24 deletions
diff --git a/gcc/cp/pt.c b/gcc/cp/pt.c index f85e623..706e3a9 100644 --- a/gcc/cp/pt.c +++ b/gcc/cp/pt.c @@ -10135,7 +10135,7 @@ tsubst_attribute (tree t, tree *decl_p, tree args, tree val = TREE_VALUE (t); if (val == NULL_TREE) /* Nothing to do. */; - else if ((flag_openmp || flag_openmp_simd || flag_cilkplus) + else if ((flag_openmp || flag_openmp_simd) && is_attribute_p ("omp declare simd", get_attribute_name (t))) { @@ -16418,8 +16418,6 @@ tsubst_expr (tree t, tree args, tsubst_flags_t complain, tree in_decl, case OMP_FOR: case OMP_SIMD: - case CILK_SIMD: - case CILK_FOR: case OMP_DISTRIBUTE: case OMP_TASKLOOP: case OACC_LOOP: @@ -16431,9 +16429,7 @@ tsubst_expr (tree t, tree args, tsubst_flags_t complain, tree in_decl, enum c_omp_region_type ort = C_ORT_OMP; int i; - if (TREE_CODE (t) == CILK_SIMD || TREE_CODE (t) == CILK_FOR) - ort = C_ORT_CILK; - else if (TREE_CODE (t) == OACC_LOOP) + if (TREE_CODE (t) == OACC_LOOP) ort = C_ORT_ACC; r = push_omp_privatization_clauses (OMP_FOR_INIT (t) == NULL_TREE); @@ -16712,13 +16708,6 @@ tsubst_expr (tree t, tree args, tsubst_flags_t complain, tree in_decl, error ("use %<...%> to expand argument pack"); RETURN (error_mark_node); - case CILK_SPAWN_STMT: - cfun->calls_cilk_spawn = 1; - RETURN (build_cilk_spawn (EXPR_LOCATION (t), RECUR (CILK_SPAWN_FN (t)))); - - case CILK_SYNC_STMT: - RETURN (build_cilk_sync ()); - case COMPOUND_EXPR: tmp = RECUR (TREE_OPERAND (t, 0)); if (tmp == NULL_TREE) @@ -17312,17 +17301,6 @@ tsubst_copy_and_build (tree t, RECUR (TREE_OPERAND (t, 1)), complain|decltype_flag)); - case ARRAY_NOTATION_REF: - { - tree start_index, length, stride; - op1 = tsubst_non_call_postfix_expression (ARRAY_NOTATION_ARRAY (t), - args, complain, in_decl); - start_index = RECUR (ARRAY_NOTATION_START (t)); - length = RECUR (ARRAY_NOTATION_LENGTH (t)); - stride = RECUR (ARRAY_NOTATION_STRIDE (t)); - RETURN (build_array_notation_ref (EXPR_LOCATION (t), op1, start_index, - length, stride, TREE_TYPE (op1))); - } case SIZEOF_EXPR: if (PACK_EXPANSION_P (TREE_OPERAND (t, 0)) || ARGUMENT_PACK_P (TREE_OPERAND (t, 0))) |