]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/cp/semantics.c
re PR c++/38650 (Trouble with volatile and #pragma omp for)
authorJakub Jelinek <jakub@redhat.com>
Sun, 28 Dec 2008 20:06:00 +0000 (21:06 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Sun, 28 Dec 2008 20:06:00 +0000 (21:06 +0100)
commite4ebaef35b3de79c05c616044c6e370b83e17a1f
treef612b0b6482de3bfab5e984231c0d017244573cb
parent2008239a953d29cd5a2dd45a08f3c903999080e0
re PR c++/38650 (Trouble with volatile and #pragma omp for)

PR c++/38650
* semantics.c (finish_omp_for): Don't add CLEANUP_POINT_EXPR
around volatile iteration var in condition and/or increment
expression.

* testsuite/libgomp.c/pr38650.c: New test.
* testsuite/libgomp.c++/pr38650.C: New test.

From-SVN: r142940
gcc/cp/ChangeLog
gcc/cp/semantics.c
libgomp/ChangeLog
libgomp/testsuite/libgomp.c++/pr38650.C [new file with mode: 0644]
libgomp/testsuite/libgomp.c/pr38650.c [new file with mode: 0644]