summaryrefslogtreecommitdiff
path: root/gcc/cp/call.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/cp/call.c')
-rw-r--r--gcc/cp/call.c35
1 files changed, 0 insertions, 35 deletions
diff --git a/gcc/cp/call.c b/gcc/cp/call.c
index 177c3cc13e3..45c811e828e 100644
--- a/gcc/cp/call.c
+++ b/gcc/cp/call.c
@@ -7422,9 +7422,6 @@ convert_for_arg_passing (tree type, tree val, tsubst_flags_t complain)
int
magic_varargs_p (tree fn)
{
- if (flag_cilkplus && is_cilkplus_reduce_builtin (fn) != BUILT_IN_NONE)
- return 2;
-
if (DECL_BUILT_IN_CLASS (fn) == BUILT_IN_NORMAL)
switch (DECL_FUNCTION_CODE (fn))
{
@@ -8650,38 +8647,6 @@ build_cxx_call (tree fn, int nargs, tree *argarray,
maybe_warn_class_memaccess (loc, fndecl, argarray);
}
- /* If it is a built-in array notation function, then the return type of
- the function is the element type of the array passed in as array
- notation (i.e. the first parameter of the function). */
- if (flag_cilkplus && TREE_CODE (fn) == CALL_EXPR)
- {
- enum built_in_function bif =
- is_cilkplus_reduce_builtin (CALL_EXPR_FN (fn));
- if (bif == BUILT_IN_CILKPLUS_SEC_REDUCE_ADD
- || bif == BUILT_IN_CILKPLUS_SEC_REDUCE_MUL
- || bif == BUILT_IN_CILKPLUS_SEC_REDUCE_MAX
- || bif == BUILT_IN_CILKPLUS_SEC_REDUCE_MIN
- || bif == BUILT_IN_CILKPLUS_SEC_REDUCE
- || bif == BUILT_IN_CILKPLUS_SEC_REDUCE_MUTATING)
- {
- if (call_expr_nargs (fn) == 0)
- {
- error_at (EXPR_LOCATION (fn), "Invalid builtin arguments");
- return error_mark_node;
- }
- /* for bif == BUILT_IN_CILKPLUS_SEC_REDUCE_ALL_ZERO or
- BUILT_IN_CILKPLUS_SEC_REDUCE_ANY_ZERO or
- BUILT_IN_CILKPLUS_SEC_REDUCE_ANY_NONZERO or
- BUILT_IN_CILKPLUS_SEC_REDUCE_ALL_NONZERO or
- BUILT_IN_CILKPLUS_SEC_REDUCE_MIN_IND or
- BUILT_IN_CILKPLUS_SEC_REDUCE_MAX_IND
- The pre-defined return-type is the correct one. */
- tree array_ntn = CALL_EXPR_ARG (fn, 0);
- TREE_TYPE (fn) = TREE_TYPE (array_ntn);
- return fn;
- }
- }
-
if (VOID_TYPE_P (TREE_TYPE (fn)))
return fn;