diff options
author | mpolacek <mpolacek@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-01-31 08:13:50 +0000 |
---|---|---|
committer | mpolacek <mpolacek@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-01-31 08:13:50 +0000 |
commit | ec761d5a73219a67a605f9102269df416f647093 (patch) | |
tree | d72ad2d85070a83e828f16474ea193868efb9831 /gcc/c-family/c-common.c | |
parent | 9d636c0524660b8784d50f39869bf3751402804b (diff) | |
download | gcc-ec761d5a73219a67a605f9102269df416f647093.tar.gz |
PR c/59963
c-family/
* c-common.c (add_atomic_size_parameter): Pass vNULL to
build_function_call_vec.
(resolve_overloaded_builtin): Likewise.
* c-common.h (build_function_call_vec): Adjust declaration.
cp/
* typeck.c (build_function_call_vec): Add dummy arg_loc parameter.
c/
* c-typeck.c (convert_lvalue_to_rvalue): Pass vNULL to
build_function_call_vec.
(build_function_call): Likewise.
(build_atomic_assign): Likewise.
(build_function_call_vec): Add arg_loc parameter. Use it.
(convert_arguments): Likewise.
(convert_for_assignment): Rename rhs_loc to expr_loc.
* c-parser.c (c_parser_attributes): Pass NULL to c_parser_expr_list.
(c_parser_objc_keywordexpr): Likewise.
(c_parser_postfix_expression_after_primary): Call
build_function_call_vec with expr_loc rather than op_loc.
Call c_parser_expr_list to fill arg_loc. Pass arg_loc to
build_function_call_vec.
(c_parser_expr_list): Add locations parameter. Fill it with locations
of function arguments.
* c-decl.c (finish_decl): Pass vNULL to build_function_call_vec.
objc/
* objc-next-runtime-abi-02.c (build_throw_stmt): Pass vNULL to
build_function_call_vec.
(finish_catch): Likewise.
(next_runtime_abi_02_get_class_reference): Likewise.
* objc-next-runtime-abi-01.c (build_objc_method_call): Pass vNULL to
build_function_call_vec.
(build_throw_stmt): Likewise.
* objc-gnu-runtime-abi-01.c: (build_objc_method_call): Pass vNULL to
build_function_call_vec.
(build_throw_stmt): Likewise.
testsuite/
* gcc.dg/pr59940.c (g): Adjust dg-warning.
(y): Adjust dg-error.
* gcc.dg/cast-function-1.c (bar): Adjust dg-warnings.
* gcc.dg/pr59963-1.c: New test.
* gcc.dg/pr59963-2.c: New test.
* gcc.dg/pr59963-3.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@207335 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c-family/c-common.c')
-rw-r--r-- | gcc/c-family/c-common.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/c-family/c-common.c b/gcc/c-family/c-common.c index e5d1075fc87..5ce1a3ef75a 100644 --- a/gcc/c-family/c-common.c +++ b/gcc/c-family/c-common.c @@ -10382,7 +10382,7 @@ add_atomic_size_parameter (unsigned n, location_t loc, tree function, vec_alloc (v, len + 1); for (z = 0; z < len; z++) v->quick_push ((*params)[z]); - f = build_function_call_vec (loc, function, v, NULL); + f = build_function_call_vec (loc, vNULL, function, v, NULL); vec_free (v); return f; } @@ -10813,7 +10813,8 @@ resolve_overloaded_builtin (location_t loc, tree function, return error_mark_node; first_param = (*params)[0]; - result = build_function_call_vec (loc, new_function, params, NULL); + result = build_function_call_vec (loc, vNULL, new_function, params, + NULL); if (result == error_mark_node) return result; if (orig_code != BUILT_IN_SYNC_BOOL_COMPARE_AND_SWAP_N |