Skip to content

Commit e653dd2

Browse files
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

5 files changed

+3637
-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)