Skip to content

Commit a7dd594

Browse files
committed
250814.075203.CST [skip ci] add a comment about flang
1 parent f2d0687 commit a7dd594

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

.github/workflows/stress_test_fortran.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ jobs:
2727
fail-fast: false
2828
matrix:
2929
os: [ubuntu-latest, macos-13, macos-14]
30+
# Zaikun 20250814 The flang test (f) is expected to fail with a segfault due to
31+
# https://github.com/llvm/llvm-project/issues/88344 . Updating flang may fix it. See
32+
# https://github.com/llvm/llvm-project/pull/98457
3033
compiler: [g, v, s, f, x, d]
3134
solver: [newuoa, cobyla, lincoa, bobyqa, uobyqa]
3235
testdim: [large]

fortran/tests/makefiles/Makefile.common

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -406,6 +406,11 @@ ifeq ($(TESTDIM),small)
406406
FFORT := $(FFORT) -fstack-arrays
407407
else
408408
FFORT := $(FFORT) -fno-stack-arrays -mmlir -fdynamic-heap-array
409+
# As of flang-new version 19.0.0, the above options do not guarantee that the arrays are allocated
410+
# on the heap. Segfaults may still occur if the arrays are large enough. See
411+
# https://github.com/llvm/llvm-project/issues/88344
412+
# Updating flang may fix the issue. See
413+
# https://github.com/llvm/llvm-project/pull/98457
409414
endif
410415
FFORT := $(FFORT) -std=f2018 -pedantic # As of flang 19.0, only -std=f2018 is supported
411416
ifeq ($(OSTYPE),LINUX)

0 commit comments

Comments
 (0)