diff options
Diffstat (limited to 'gcc/c-typeck.c')
-rw-r--r-- | gcc/c-typeck.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gcc/c-typeck.c b/gcc/c-typeck.c index 28ce2baf163..f6ba19e2842 100644 --- a/gcc/c-typeck.c +++ b/gcc/c-typeck.c @@ -2330,17 +2330,17 @@ build_function_call (tree function, tree params) if (require_constant_value) { - result = fold_build3_initializer (CALL_EXPR, TREE_TYPE (fntype), - function, coerced_params, NULL_TREE); - + result = fold_build_call_list_initializer (TREE_TYPE (fntype), + function, + coerced_params); if (TREE_CONSTANT (result) && (name == NULL_TREE || strncmp (IDENTIFIER_POINTER (name), "__builtin_", 10) != 0)) pedwarn_init ("initializer element is not constant"); } else - result = fold_build3 (CALL_EXPR, TREE_TYPE (fntype), - function, coerced_params, NULL_TREE); + result = fold_build_call_list (TREE_TYPE (fntype), + function, coerced_params); if (VOID_TYPE_P (TREE_TYPE (result))) return result; |