From 09f5e62241d731f99965e9625556f2ce344c19ba Mon Sep 17 00:00:00 2001 From: zaikunzhang Date: Tue, 20 Feb 2024 22:21:00 +0800 Subject: [PATCH] 240220.222100.HKT remove `-Mbounds` from `flang`, `aflang`, and `armflang` in cmake*.yml due to https://github.com/flang-compiler/flang/issues/1238 --- .github/workflows/cmake.yml | 7 +++++-- .github/workflows/cmake_pi.yml | 5 +++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml index d74aaec951..806f561543 100644 --- a/.github/workflows/cmake.yml +++ b/.github/workflows/cmake.yml @@ -156,9 +156,10 @@ jobs: matrix: toolchain: # Flang family with -Mchkptr would fail. See https://forums.developer.nvidia.com/t/bug-in-nvfortran-with-mchkptr-for-unallocated-optional-arguments/223220 - - {compiler: aflang, cflags: '-Wall', fflags: '-Wpedantic -Weverything -Wall -Wextra -Minform=warn -Mstandard -Mrecursive'} + # 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: '-Wpedantic -Weverything -Wall -Wextra'} + - {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'} steps: @@ -187,6 +188,8 @@ jobs: if: ${{ matrix.toolchain.compiler == 'nvfortran' }} run: bash .github/scripts/install_nvfortran + # Install Flang after AOCC, to make sure that flang is this one, while AOCC flang will be + # known as aflang. - name: Install Flang if: ${{ matrix.toolchain.compiler == 'flang' }} run: bash .github/scripts/install_flang diff --git a/.github/workflows/cmake_pi.yml b/.github/workflows/cmake_pi.yml index 2269b8b40f..b5eafdc306 100644 --- a/.github/workflows/cmake_pi.yml +++ b/.github/workflows/cmake_pi.yml @@ -30,9 +30,10 @@ jobs: toolchain: - {fc: gfortran, fflags: '-Wall -Wextra -Wpedantic -Werror -pedantic -fimplicit-none -frecursive -fcheck=all -fstack-check -Wno-function-elimination'} # Flang family with -Mchkptr would fail. See https://forums.developer.nvidia.com/t/bug-in-nvfortran-with-mchkptr-for-unallocated-optional-arguments/223220 + # As of 20240220, flang and armflang with -Mbounds would fail due to the bug at https://github.com/flang-compiler/flang/issues/1238 - {fc: nvfortran, fflags: '-C -Wall -Wextra -Minform=warn -Mstandard -Mrecursive -Mbounds -Mchkstk'} - - {fc: flang, fflags: '-pedantic -Weverything -Wall -Wextra -Minform=warn -Mstandard -Mbounds -Mrecursive'} - - {fc: armflang, fflags: '-pedantic -Weverything -Wall -Wextra -Minform=warn -Mstandard -Mrecursive -Mbounds'} + - {fc: flang, fflags: '-pedantic -Weverything -Wall -Wextra -Minform=warn -Mstandard -Mrecursive'} + - {fc: armflang, fflags: '-pedantic -Weverything -Wall -Wextra -Minform=warn -Mstandard -Mrecursive'} steps: