re PR c/59984 (OpenMP pragma makes loop incorrect)
PR c/59984 * gimplify.c (gimplify_bind_expr): In ORT_SIMD region mark local addressable non-static vars as GOVD_PRIVATE instead of GOVD_LOCAL. * omp-low.c (lower_omp_for): Move gimple_bind_vars and BLOCK_VARS of gimple_bind_block to new_stmt rather than copying them. * gcc.dg/vect/pr59984.c: New test. From-SVN: r207629
Showing
- gcc/ChangeLog 8 additions, 0 deletionsgcc/ChangeLog
- gcc/gimplify.c 8 additions, 1 deletiongcc/gimplify.c
- gcc/omp-low.c 7 additions, 1 deletiongcc/omp-low.c
- gcc/testsuite/ChangeLog 3 additions, 0 deletionsgcc/testsuite/ChangeLog
- gcc/testsuite/gcc.dg/vect/pr59984.c 64 additions, 0 deletionsgcc/testsuite/gcc.dg/vect/pr59984.c
Loading
Please register or sign in to comment