Hi! On 2023-10-25T10:57:06+0200, I wrote: > With minor textual conflicts resolved, I've pushed this to master branch > in commit 3a3596389c2e539cb8fd5dc5784a4e2afe193a2a > "OpenACC 2.7: Implement self clause for compute constructs", see > attached. > > > I'll then apply/submit a number of follow-on commits. Regarding the Fortran front end changes: > From 3a3596389c2e539cb8fd5dc5784a4e2afe193a2a Mon Sep 17 00:00:00 2001 > From: Chung-Lin Tang > Date: Tue, 13 Jun 2023 08:44:31 -0700 > Subject: [PATCH] OpenACC 2.7: Implement self clause for compute constructs > --- a/gcc/fortran/gfortran.h > +++ b/gcc/fortran/gfortran.h > @@ -1546,6 +1546,7 @@ typedef struct gfc_omp_clauses > gfc_omp_namelist *lists[OMP_LIST_NUM]; > struct gfc_expr *if_expr; > struct gfc_expr *if_exprs[OMP_IF_LAST]; > + struct gfc_expr *self_expr; > struct gfc_expr *final_expr; > struct gfc_expr *num_threads; > struct gfc_expr *chunk_size; ..., this needs to be handled in a few more places, I think... > --- a/gcc/fortran/trans-openmp.cc > +++ b/gcc/fortran/trans-openmp.cc > @@ -6615,6 +6631,8 @@ gfc_split_omp_clauses (gfc_code *code, > /* And this is copied to all. */ > clausesa[GFC_OMP_SPLIT_TARGET].if_expr > = code->ext.omp_clauses->if_expr; > + clausesa[GFC_OMP_SPLIT_TARGET].self_expr > + = code->ext.omp_clauses->self_expr; > clausesa[GFC_OMP_SPLIT_TARGET].nowait > = code->ext.omp_clauses->nowait; > } ..., but this change isn't necessary: that function is for OpenMP only, and generally doesn't (have to) care about OpenACC-only clauses. OK to push the attached "Minor fixes for OpenACC/Fortran 'self' clause for compute constructs", or is anything more needed? Also, I've filed "Missing OpenACC/Fortran handling in 'gcc/fortran/frontend-passes.c'", which applies generally, not just to the OpenACC 'self' clause on compute constructs. Grüße Thomas ----------------- Siemens Electronic Design Automation GmbH; Anschrift: Arnulfstraße 201, 80634 München; Gesellschaft mit beschränkter Haftung; Geschäftsführer: Thomas Heurung, Frank Thürauf; Sitz der Gesellschaft: München; Registergericht München, HRB 106955