re PR middle-end/66820 (internal compiler error: in get_expr_operands, at tree-ssa...
authorJakub Jelinek <jakub@redhat.com>
Fri, 10 Jul 2015 10:26:19 +0000 (12:26 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 10 Jul 2015 10:26:19 +0000 (12:26 +0200)
commitd26fc9797bd7888d50fb8d09fbe7d258b0236444
tree33d774f746d1bcb1f3b9de1fd52df76f9c290001
parente9f4322e78d9f5be3ee2a61ffa9b44f9470f0042
re PR middle-end/66820 (internal compiler error: in get_expr_operands, at tree-ssa-operands.c:910)

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.

From-SVN: r225661
gcc/ChangeLog
gcc/gimplify.c
gcc/omp-low.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/gomp/pr66820.c [new file with mode: 0644]