]> git.ipfire.org Git - thirdparty/gcc.git/commit
[og10] openacc: Use class_pointer instead of pointer attribute for class types
authorJulian Brown <julian@codesourcery.com>
Sat, 30 Jan 2021 01:18:07 +0000 (17:18 -0800)
committerJulian Brown <julian@codesourcery.com>
Wed, 24 Feb 2021 14:31:59 +0000 (06:31 -0800)
commitd3d976bc7d330740eb83af747d80ba501a5ce486
treec65b75647e5b2be07858a4ac3658c82b4c5a30b3
parent39ec7c6c2540226f565ec0363152034fea7b8042
[og10] openacc: Use class_pointer instead of pointer attribute for class types

Elsewhere in the Fortran front-end, the class_pointer attribute is
used for BT_CLASS entities instead of the pointer attribute. This patch
follows suit for OpenACC. I couldn't actually come up with a test case
where this makes a difference (i.e., where "class_pointer" and "pointer"
have different values at this point in the code), but this may nonetheless
fix a latent bug.

gcc/fortran/
* trans-openmp.c (gfc_trans_omp_clauses): Use class_pointer attribute
for BT_CLASS.

(cherry picked from commit f743fe231663e32d52db987650d0ec3381a777af)
gcc/fortran/ChangeLog.omp
gcc/fortran/trans-openmp.c