Gentoo Archives: gentoo-dev

From: Torokhov Sergey <torokhov-s-a@××××××.ru>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] [PATCH] fortran-2.eclass: simple check Fortran 2008 Standard Coarray support
Date: Tue, 21 Jun 2022 21:31:44
Message-Id: 8891861655847096@myt6-887fb48a9c29.qloud-c.yandex.net
In Reply to: Re: [gentoo-dev] fortran-2.eclass: simple check Fortran 2008 Standard Coarray support by Torokhov Sergey
1 Updated (attached) patch and PR with FOrtran 2008 Standard support check via accessing imaginary part of complex number.
2
3 This check is formaly as since GCC-9.0 there almost all planning Fortran 2008 Standart features were implemented.
4 The version <sys-devel/gcc-9.0 are masked in portage tree.
5
6 According to 1 the one of the recent implemented GCC-gfortran Fortran 2008 feature is
7 "Accessing real and imaginary parts (since 9.0, 2018-11-01)"
8
9 The "Contiguous attribute" (since 4.6, 2010-06-21, the is_contiguous intrinsic has been implemented on 2019-01-07)
10 is more recent but harder to check.
11
12
13
14 > I definitely must use another feature to check as -fcoarray=single is supported since GCC 4.6 while there are several Fortran features supported since GCC 9.0 :(
15 >
16 > 16.06.2022, 01:52, "Torokhov Sergey" <torokhov-s-a@××××××.ru>:
17 >
18 >> Currently the fortran-2.eclass Fortran compiler dialect is restricted with check of Fortran 2003 standard.
19 >> Some packages could require to check at least Fortran 2008 support.
20 >>
21 >> The proposed attached patch offer to check Fortran 2008 compatibility via one of the new most notable feature - Coarrays support (parallel processing feature).
22 >> Besides the new test file the current check require the passing of GCC (gfortran) compiler option `-fcoarray=single` to check Fortran 2008 compatibility.
23 >>
24 >> The same patch is available via GIthub pull request: https://github.com/gentoo/gentoo/pull/25920

Attachments

File name MIME type
0001-fortran-2.eclass-check-Fortran-2008-Standard-support.patch text/x-diff