aboutsummaryrefslogtreecommitdiff
path: root/gcc/c/c-parser.c
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2014-03-28 19:16:32 +0100
committerJakub Jelinek <jakub@gcc.gnu.org>2014-03-28 19:16:32 +0100
commit8edbfaa667837b66a65cce37f46c54341351a35c (patch)
tree5ac9b4bd348a0bf427859860b1c1400fc1d7d29b /gcc/c/c-parser.c
parented6eb6dc9f67948da5f87b9c75d6d03bf696446e (diff)
downloadgcc-8edbfaa667837b66a65cce37f46c54341351a35c.zip
gcc-8edbfaa667837b66a65cce37f46c54341351a35c.tar.gz
gcc-8edbfaa667837b66a65cce37f46c54341351a35c.tar.bz2
re PR c++/60689 (Bogus error with atomic::exchange)
PR c++/60689 * c-tree.h (c_build_function_call_vec): New prototype. * c-typeck.c (build_function_call_vec): Don't call resolve_overloaded_builtin here. (c_build_function_call_vec): New wrapper function around build_function_call_vec. Call resolve_overloaded_builtin here. (convert_lvalue_to_rvalue, build_function_call, build_atomic_assign): Call c_build_function_call_vec instead of build_function_call_vec. * c-parser.c (c_parser_postfix_expression_after_primary): Likewise. * c-decl.c (finish_decl): Likewise. * c-common.c (add_atomic_size_parameter): When creating new params vector, push the size argument first. * c-c++-common/pr60689.c: New test. From-SVN: r208912
Diffstat (limited to 'gcc/c/c-parser.c')
-rw-r--r--gcc/c/c-parser.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/c/c-parser.c b/gcc/c/c-parser.c
index d0d35c5..5653e49 100644
--- a/gcc/c/c-parser.c
+++ b/gcc/c/c-parser.c
@@ -7703,8 +7703,9 @@ c_parser_postfix_expression_after_primary (c_parser *parser,
expr.value, exprlist,
sizeof_arg,
sizeof_ptr_memacc_comptypes);
- expr.value = build_function_call_vec (expr_loc, arg_loc, expr.value,
- exprlist, origtypes);
+ expr.value
+ = c_build_function_call_vec (expr_loc, arg_loc, expr.value,
+ exprlist, origtypes);
expr.original_code = ERROR_MARK;
if (TREE_CODE (expr.value) == INTEGER_CST
&& TREE_CODE (orig_expr.value) == FUNCTION_DECL