]> git.ipfire.org Git - thirdparty/gcc.git/commit
omp-low.c (lower_rec_input_clauses): Handle VLAs properly.
authorJakub Jelinek <jakub@redhat.com>
Wed, 10 Oct 2018 11:04:09 +0000 (13:04 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 10 Oct 2018 11:04:09 +0000 (13:04 +0200)
commitccd0b7d5603f4d598aee82a4e633a61433793c9e
treeeb665cbafbec30f19bdfdeccbc352e650f09b631
parentfddf42a344b5b96b475635d0bf41cb9ef3a1d65a
omp-low.c (lower_rec_input_clauses): Handle VLAs properly.

* omp-low.c (lower_rec_input_clauses): Handle VLAs properly.
(lower_omp_task_reductions): Likewise.
* gimplify.c (enum omp_region_type): Add ORT_TASKGROUP.
(gimple_add_tmp_var, omp_firstprivatize_variable, omp_notice_variable,
omp_is_private, omp_check_private, gimplify_omp_depend): Handle
ORT_TASKGROUP like ORT_WORKSHARE.
(omp_add_variable): Don't add private/firstprivate for VLAs in
ORT_TASKGROUP.
(gimplify_expr) <case OMP_TASKGROUP>: Move handling into a separate
case, make sure to scan omp clauses before gimplifying body.

* testsuite/libgomp.c-c++-common/task-reduction-5.c (size_t): New
typedef.
(bar): Use it instead of __SIZE_TYPE__ directly.
(foo): Likewise.  Use (~(size_t) 0) instead of __SIZE_MAX__.
* testsuite/libgomp.c/task-reduction-1.c: New test.
* testsuite/libgomp.c++/task-reduction-7.C: New test.

From-SVN: r265013
gcc/ChangeLog.gomp
gcc/gimplify.c
gcc/omp-low.c
libgomp/ChangeLog.gomp
libgomp/testsuite/libgomp.c++/task-reduction-7.C [new file with mode: 0644]
libgomp/testsuite/libgomp.c-c++-common/task-reduction-5.c
libgomp/testsuite/libgomp.c/task-reduction-1.c [new file with mode: 0644]