You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Flang][OpenMP] : Compilation error involving Cray pointers and data-sharing attributes
Issue description:
When DEFAULT DSA is NONE, all data refs must be listed in one of the data sharing clause.
When a Cray pointer is listed in one of the data sharing clause, Cray pointee can be used in parallel region.
This is valid as per standard.
"Cray pointees have the same data-sharing attribute as the storage with which their Cray pointers are associated."
Currently compiler crashes for default(none).
Also current semantic checks incorrectly updates the symbol flags related to Craypointee symbols.
due to this incorrect updation, compiler crashes when default(private) and default(firstprivate) is specified.
Solution:
Added an additional check to skip updation of symbol flags related to Craypointee symbols.
This also prevents from checking cray pointee when DEFAULT DSA is NONE.
This patch has code changes and a test case.
0 commit comments