Commit ba789c6
authored
[Flang] Add semantics checks for CrayPointer usage in DSA list (#123171)
Follow-up PR to fix the failure caused here:
llvm/llvm-project#121028
Failure:
https://lab.llvm.org/buildbot/#/builders/89/builds/14474
Problems:
- Cray pointee cannot be used in the DSA list (If used results in segmentation fault)
- Cray pointer has to be in the DSA list when Cray pointee is used in the default (none) region
Fix: Added required semantic checks along the tests
Reference from the documentation (OpenMP 5.0: 2.19.1):
- Cray pointees have the same data-sharing attribute as the storage with
which their Cray pointers are associated.1 parent 0bbfd96 commit ba789c6
File tree
4 files changed
+88
-6
lines changed- flang
- lib/Semantics
- test/Semantics/OpenMP
4 files changed
+88
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3438 | 3438 | | |
3439 | 3439 | | |
3440 | 3440 | | |
| 3441 | + | |
3441 | 3442 | | |
3442 | 3443 | | |
3443 | 3444 | | |
3444 | 3445 | | |
3445 | 3446 | | |
3446 | 3447 | | |
3447 | 3448 | | |
| 3449 | + | |
3448 | 3450 | | |
3449 | 3451 | | |
3450 | 3452 | | |
| |||
3524 | 3526 | | |
3525 | 3527 | | |
3526 | 3528 | | |
| 3529 | + | |
3527 | 3530 | | |
3528 | 3531 | | |
3529 | 3532 | | |
| |||
3758 | 3761 | | |
3759 | 3762 | | |
3760 | 3763 | | |
| 3764 | + | |
3761 | 3765 | | |
3762 | 3766 | | |
3763 | 3767 | | |
| |||
4203 | 4207 | | |
4204 | 4208 | | |
4205 | 4209 | | |
| 4210 | + | |
4206 | 4211 | | |
4207 | 4212 | | |
4208 | 4213 | | |
| |||
4620 | 4625 | | |
4621 | 4626 | | |
4622 | 4627 | | |
| 4628 | + | |
| 4629 | + | |
| 4630 | + | |
| 4631 | + | |
| 4632 | + | |
| 4633 | + | |
| 4634 | + | |
| 4635 | + | |
| 4636 | + | |
| 4637 | + | |
| 4638 | + | |
| 4639 | + | |
| 4640 | + | |
| 4641 | + | |
| 4642 | + | |
| 4643 | + | |
| 4644 | + | |
| 4645 | + | |
| 4646 | + | |
| 4647 | + | |
4623 | 4648 | | |
4624 | 4649 | | |
4625 | 4650 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
199 | 199 | | |
200 | 200 | | |
201 | 201 | | |
| 202 | + | |
| 203 | + | |
202 | 204 | | |
203 | 205 | | |
204 | 206 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2105 | 2105 | | |
2106 | 2106 | | |
2107 | 2107 | | |
2108 | | - | |
2109 | | - | |
| 2108 | + | |
| 2109 | + | |
| 2110 | + | |
| 2111 | + | |
| 2112 | + | |
2110 | 2113 | | |
2111 | 2114 | | |
2112 | 2115 | | |
| |||
2273 | 2276 | | |
2274 | 2277 | | |
2275 | 2278 | | |
2276 | | - | |
2277 | | - | |
2278 | | - | |
2279 | | - | |
| 2279 | + | |
| 2280 | + | |
| 2281 | + | |
| 2282 | + | |
| 2283 | + | |
| 2284 | + | |
| 2285 | + | |
| 2286 | + | |
| 2287 | + | |
| 2288 | + | |
| 2289 | + | |
| 2290 | + | |
2280 | 2291 | | |
2281 | 2292 | | |
2282 | 2293 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
0 commit comments