diff options
author | Mark Mitchell <mark@codesourcery.com> | 2006-06-15 03:26:38 +0000 |
---|---|---|
committer | Mark Mitchell <mmitchel@gcc.gnu.org> | 2006-06-15 03:26:38 +0000 |
commit | fe89d79748951c95a113e10b6184ca5284d3936d (patch) | |
tree | 2419236a5dd577e978264804fe2c75548fb14e25 /gcc/c-common.h | |
parent | 801522dead7b6e710f78eb26017195c814db04a2 (diff) | |
download | gcc-fe89d79748951c95a113e10b6184ca5284d3936d.zip gcc-fe89d79748951c95a113e10b6184ca5284d3936d.tar.gz gcc-fe89d79748951c95a113e10b6184ca5284d3936d.tar.bz2 |
re PR c++/26559 (ICE with __builtin_constant_p in template argument)
2006-06-14 Mark Mitchell <mark@codesourcery.com>
PR c++/26559
* c-common.h (c_finish_omp_atomic): Adjust declaration.
* c-omp.c (c_finish_omp_atomic): Return the expression to perform,
rather than calling add_stmt on it.
* c-parser.c (c_parser_omp_atomic): Adjust accordingly.
2006-06-14 Mark Mitchell <mark@codesourcery.com>
PR c++/26559
* pt.c (tsubst_expr): Use finish_omp_atomic.
(value_dependent_expression_p): All CALL_EXPRs are dependent.
* semantics.c (finish_omp_atomic): Rework to use standard
paradigms for handling non-dependent expressions.
2006-06-14 Mark Mitchell <mark@codesourcery.com>
PR c++/26559
* g++.dg/template/builtin1.C: New test.
* g++.dg/gomp/tpl-atomic-2.C: Remove XFAIL.
From-SVN: r114665
Diffstat (limited to 'gcc/c-common.h')
-rw-r--r-- | gcc/c-common.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/c-common.h b/gcc/c-common.h index 92ab71d..4f4919e 100644 --- a/gcc/c-common.h +++ b/gcc/c-common.h @@ -948,7 +948,7 @@ extern tree c_finish_omp_master (tree); extern tree c_finish_omp_critical (tree, tree); extern tree c_finish_omp_ordered (tree); extern void c_finish_omp_barrier (void); -extern void c_finish_omp_atomic (enum tree_code, tree, tree); +extern tree c_finish_omp_atomic (enum tree_code, tree, tree); extern void c_finish_omp_flush (void); extern tree c_finish_omp_for (location_t, tree, tree, tree, tree, tree, tree); extern void c_split_parallel_clauses (tree, tree *, tree *); |