diff options
author | Jakub Jelinek <jakub@redhat.com> | 2014-03-28 19:16:32 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2014-03-28 19:16:32 +0100 |
commit | 8edbfaa667837b66a65cce37f46c54341351a35c (patch) | |
tree | 5ac9b4bd348a0bf427859860b1c1400fc1d7d29b /gcc/c/c-tree.h | |
parent | ed6eb6dc9f67948da5f87b9c75d6d03bf696446e (diff) | |
download | gcc-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-tree.h')
-rw-r--r-- | gcc/c/c-tree.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/c/c-tree.h b/gcc/c/c-tree.h index 84d5e0b..85df885 100644 --- a/gcc/c/c-tree.h +++ b/gcc/c/c-tree.h @@ -643,6 +643,8 @@ extern tree c_finish_omp_clauses (tree); extern tree c_build_va_arg (location_t, tree, tree); extern tree c_finish_transaction (location_t, tree, int); extern bool c_tree_equal (tree, tree); +extern tree c_build_function_call_vec (location_t, vec<location_t>, tree, + vec<tree, va_gc> *, vec<tree, va_gc> *); /* Set to 0 at beginning of a function definition, set to 1 if a return statement that specifies a return value is seen. */ |