PR middle-end/66820
commitc3a819719c856a21485ebac32f6d59abd8ea6d05
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 10 Jul 2015 10:26:19 +0000 (10 10:26 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 10 Jul 2015 10:26:19 +0000 (10 10:26 +0000)
tree33d774f746d1bcb1f3b9de1fd52df76f9c290001
parenta3e1e71568c4a251ebf0dcf77beaf65ddeab6196
PR middle-end/66820
* gimplify.c (maybe_fold_stmt): Don't fold in ORT_PARALLEL
or ORT_TASK contexts.
* omp-low.c (lower_omp): Call fold_stmt even if taskreg_nesting_level
is non-zero.

* gcc.dg/gomp/pr66820.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@225661 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/gimplify.c
gcc/omp-low.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/gomp/pr66820.c [new file with mode: 0644]