aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/constexpr.c
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2020-08-08 11:10:30 +0200
committerGiuliano Belinassi <giuliano.belinassi@usp.br>2020-08-17 15:07:50 -0300
commita170514f668eeb7bb004eec368f003a2a932e438 (patch)
tree5ac917be2d4929a1c279ef5527849ef5be7e2d28 /gcc/cp/constexpr.c
parent99f15439e8b5f569153788565bfc03217767c311 (diff)
downloadgcc-a170514f668eeb7bb004eec368f003a2a932e438.zip
gcc-a170514f668eeb7bb004eec368f003a2a932e438.tar.gz
gcc-a170514f668eeb7bb004eec368f003a2a932e438.tar.bz2
openmp: Handle clauses with gimple sequences in convert_nonlocal_omp_clauses properly
If the walk_body on the various sequences of reduction, lastprivate and/or linear clauses needs to create a temporary variable, we should declare that variable in that sequence rather than outside, where it would need to be privatized inside of the construct. 2020-08-08 Jakub Jelinek <jakub@redhat.com> PR fortran/93553 * tree-nested.c (convert_nonlocal_omp_clauses): For OMP_CLAUSE_REDUCTION, OMP_CLAUSE_LASTPRIVATE and OMP_CLAUSE_LINEAR save info->new_local_var_chain around walks of the clause gimple sequences and declare_vars if needed into the sequence. 2020-08-08 Tobias Burnus <tobias@codesourcery.com> PR fortran/93553 * testsuite/libgomp.fortran/pr93553.f90: New test.
Diffstat (limited to 'gcc/cp/constexpr.c')
0 files changed, 0 insertions, 0 deletions