Commit e653dd2
committed
[gfortran] Fixed cray_pointers_2.f90 aliasing issues.
The test started failing after llvm/llvm-project#140803
The issue is that the Cray pointee and the underlying storage
are both accessed in subroutines violating Fortran aliasing rules
for the dummy arguments.
GCC tried to "solve" that by using `-fno-inline` option, but
it should be better to make the aliasing explicit with proper `TARGET`
attribute placement.1 parent 460eedc commit e653dd2
File tree
5 files changed
+3637
-0
lines changed- Fortran
- UnitTests
- cray_pointers_2
- gfortran/regression
5 files changed
+3637
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
0 commit comments