Skip to content

Commit 9faf63c

Browse files
authored
[gfortran] Fixed cray_pointers_2.f90 aliasing issues. (#252)
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. * Updated comments.
1 parent 460eedc commit 9faf63c

File tree

5 files changed

+3639
-0
lines changed

5 files changed

+3639
-0
lines changed

Fortran/UnitTests/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# This file should only contain add_subdirectory(...) one for each test
22
add_subdirectory(hello)
33
add_subdirectory(assign-goto)
4+
add_subdirectory(cray_pointers_2)
45
add_subdirectory(execute_command_line)
56
add_subdirectory(fcvs21_f95) # NIST Fortran Compiler Validation Suite
67
add_subdirectory(finalization)
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
llvm_singlesource()
2+
3+
file(COPY lit.local.cfg DESTINATION "${CMAKE_CURRENT_BINARY_DIR}")

0 commit comments

Comments
 (0)