re PR libgomp/69555 (libgomp.c++/target-6.C fails because of undefined behaviour)
authorJakub Jelinek <jakub@redhat.com>
Wed, 2 Mar 2016 19:16:14 +0000 (20:16 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 2 Mar 2016 19:16:14 +0000 (20:16 +0100)
commitda3d46cba8a16bd0981967ea7ed82d54042879ce
treef57aa687d2dd5488df0e71d98672b1e7b3265350
parent268bc320088146b2eb3533ec6088e0b566e310de
re PR libgomp/69555 (libgomp.c++/target-6.C fails because of undefined behaviour)

PR libgomp/69555
* gimplify.c (gimplify_decl_expr): For decls with REFERENCE_TYPE, also
gimplify_type_sizes the type they refer to.
(omp_notice_variable): Handle reference vars to VLAs.
* omp-low.c (lower_omp_target): Emit setup of OMP_CLAUSE_PRIVATE reference
to VLA decls in the second pass instead of first pass.

* testsuite/libgomp.c++/pr69555-1.C: New test.
* testsuite/libgomp.c++/pr69555-2.C: New test.

From-SVN: r233913
gcc/ChangeLog
gcc/gimplify.c
gcc/omp-low.c
libgomp/ChangeLog
libgomp/testsuite/libgomp.c++/pr69555-1.C [new file with mode: 0644]
libgomp/testsuite/libgomp.c++/pr69555-2.C [new file with mode: 0644]