From 35f18f35dcc2493a55b8e95c99b2f44deed6c606 Mon Sep 17 00:00:00 2001 From: Sebastian Ehlert <28669218+awvwgk@users.noreply.github.com> Date: Mon, 24 May 2021 21:55:13 +0200 Subject: [PATCH 1/3] Add GCC-11 to workflow --- .github/workflows/CI.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 2ec339eed..306d5bad7 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -21,7 +21,7 @@ jobs: fail-fast: false matrix: os: [ubuntu-latest, macos-latest] - gcc_v: [7, 8, 9, 10] # Version of GFortran we want to use. + gcc_v: [7, 8, 9, 10, 11] # Version of GFortran we want to use. env: FC: gfortran-${{ matrix.gcc_v }} GCC_V: ${{ matrix.gcc_v }} From 8431e7b369cd8b0bdbc444befd49cd1192cb1bbd Mon Sep 17 00:00:00 2001 From: Laurence Kedward Date: Tue, 25 May 2021 19:04:01 +0100 Subject: [PATCH 2/3] Add: possible fix for gcc-11. Remove -pedantic-errors flag for gcc-11. --- CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 414e8addb..4e06b0250 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -24,7 +24,9 @@ if(CMAKE_Fortran_COMPILER_ID STREQUAL GNU) add_compile_options(-Wconversion-extra) # -pedantic-errors triggers a false positive for optional arguments of elemental functions, # see test_optval and https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95446 - add_compile_options(-pedantic-errors) + if(CMAKE_Fortran_COMPILER_VERSION VERSION_LESS 11.0) + add_compile_options(-pedantic-errors) + endif() if(CMAKE_Fortran_COMPILER_VERSION VERSION_GREATER_EQUAL 8.0) add_compile_options(-std=f2018) else() From 7773d54b452182f6b393c3b879ffae9acd3939d3 Mon Sep 17 00:00:00 2001 From: Sebastian Ehlert <28669218+awvwgk@users.noreply.github.com> Date: Mon, 31 May 2021 11:03:45 +0200 Subject: [PATCH 3/3] Update table in README regarding supported compiler versions --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 431b86872..f87a2ef9d 100644 --- a/README.md +++ b/README.md @@ -87,8 +87,8 @@ The following combinations are tested on the default branch of stdlib: Name | Version | Platform | Architecture --- | --- | --- | --- -GCC Fortran | 7, 8, 9, 10 | Ubuntu 20.04 | x86_64 -GCC Fortran | 7, 8, 9, 10 | MacOS Catalina 10.15 | x86_64 +GCC Fortran | 7, 8, 9, 10, 11 | Ubuntu 20.04 | x86_64 +GCC Fortran | 7, 8, 9, 10, 11 | MacOS Catalina 10.15 | x86_64 GCC Fortran | 8 | Windows Server 2019 | x86_64 GCC Fortran (MSYS) | 10 | Windows Server 2019 | x86_64 GCC Fortran (MinGW) | 10 | Windows Server 2019 | x86_64, i686