From edf71ddc01cb781c867d452d54d621297d0a6985 Mon Sep 17 00:00:00 2001 From: zaikunzhang Date: Tue, 20 Feb 2024 23:39:42 +0800 Subject: [PATCH] 240220.233942.HKT minor revision --- .github/workflows/cmake.yml | 2 +- .github/workflows/cmake_mac_nagfor.yml | 19 +++++++------------ 2 files changed, 8 insertions(+), 13 deletions(-) diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml index 806f561543..a0fcdd9ae1 100644 --- a/.github/workflows/cmake.yml +++ b/.github/workflows/cmake.yml @@ -159,7 +159,7 @@ jobs: # As of 20240220, flang and aflang with -Mbounds would fail due to the bug at https://github.com/flang-compiler/flang/issues/1238 - {compiler: nvfortran, cflags: '-Wall', fflags: '-C -Wall -Wextra -Minform=warn -Mstandard -Mrecursive -Mbounds -Mchkstk'} - {compiler: flang, cflags: '-Wall', fflags: '-pedantic -Weverything -Wall -Wextra -Minform=warn -Mstandard -Mrecursive'} - - {compiler: aflang, cflags: '-Wall', fflags: '-Wpedantic -Weverything -Wall -Wextra -Minform=warn -Mstandard -Mrecursive'} + - {compiler: aflang, cflags: '-Wall', fflags: '-pedantic -Weverything -Wall -Wextra -Minform=warn -Mstandard -Mrecursive'} steps: diff --git a/.github/workflows/cmake_mac_nagfor.yml b/.github/workflows/cmake_mac_nagfor.yml index 22a56a829c..b50d14aebe 100644 --- a/.github/workflows/cmake_mac_nagfor.yml +++ b/.github/workflows/cmake_mac_nagfor.yml @@ -30,7 +30,6 @@ jobs: fail-fast: false matrix: cc: [gcc, clang] - fc: [nagfor] steps: @@ -64,17 +63,13 @@ jobs: export CC=${{ matrix.cc }} export CFLAGS='-Wall -Wextra -Wpedantic -Werror' - export FC=${{ matrix.fc }} - if [[ "$FC" == "nagfor" ]] ; then - source ~/local/bin/nag_licensing || echo "\n\nNAG licensing failed.\n\n" - export FFLAGS='-fpp -nan -ieee=stop -recursive -gline -u -C -C=alias -C=dangling -C=intovf -kind=unique -Warn=constant_coindexing -Warn=subnormal' - # Zaikun 20240121: With gcc 13.2 or AppleClang 1.5.0 and nagfor 7.1.7143, if '-C=undefined' - # is included in FFLAGS, then the C tests will encounter a segmentation fault, although - # the Fortran tests work correctly. - #export FFLAGS='-fpp -nan -ieee=stop -recursive -gline -u -C -C=alias -C=dangling -C=intovf -C=undefined -kind=unique -Warn=constant_coindexing -Warn=subnormal' - else - export FFLAGS='-Wall -Wextra -Wpedantic -Werror -fimplicit-none -frecursive -fcheck=all -fstack-check -Wno-function-elimination' - fi + export FC="nagfor" + source ~/local/bin/nag_licensing || echo "\n\nNAG licensing failed.\n\n" + export FFLAGS='-fpp -nan -ieee=stop -recursive -gline -u -C -C=alias -C=dangling -C=intovf -kind=unique -Warn=constant_coindexing -Warn=subnormal' + # Zaikun 20240121: With gcc 13.2 or AppleClang 1.5.0 and nagfor 7.1.7143, if '-C=undefined' + # is included in FFLAGS, then the C tests will encounter a segmentation fault, although + # the Fortran tests work correctly. + #export FFLAGS='-fpp -nan -ieee=stop -recursive -gline -u -C -C=alias -C=dangling -C=intovf -C=undefined -kind=unique -Warn=constant_coindexing -Warn=subnormal' cmake --version cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_INSTALL_PREFIX=. -LAH -DCMAKE_C_FLAGS="${CFLAGS}" -DCMAKE_Fortran_FLAGS="${FFLAGS}" .