[Bug fortran/104696] [OpenMP] Implicit mapping breaks struct mapping

2022-03-10 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104696 --- Comment #4 from Tobias Burnus --- (In reply to Chung-Lin Tang from comment #3) > The problem, at a low-level, is that the Fortran FE is using always_pointer, > while C/C++ front-ends generate attach_detach (and turns in attach after > gimpli

[Bug fortran/104696] [OpenMP] Implicit mapping breaks struct mapping

2022-03-10 Thread cltang at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104696 --- Comment #3 from Chung-Lin Tang --- The problem, at a low-level, is that the Fortran FE is using always_pointer, while C/C++ front-ends generate attach_detach (and turns in attach after gimplify). attach and always_pointer both modify the GP

[Bug fortran/104696] [OpenMP] Implicit mapping breaks struct mapping

2022-03-07 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104696 --- Comment #2 from Tobias Burnus --- (In reply to Tobias Burnus from comment #1) > Namely: > test.c-- > struct s { int *d; }; It makes more sense to use 'int d;' to match Fortran. Doing so yields in the gimple dump: #

[Bug fortran/104696] [OpenMP] Implicit mapping breaks struct mapping

2022-03-03 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104696 Tobias Burnus changed: What|Removed |Added Summary|[12 Regression][OpenMP] |[OpenMP] Implicit mapping