Re: [Fortran, PR124484, v3] Fix testing caf_shmem on older glibcs was: [Linaro-TCWG-CI] gcc-16-7727-gaa09298cb017: 157 regressions on aarch64

Toon Moene <[email protected]>
Newsgroups gmane.comp.gcc.regression,gmane.linux.linaro.toolchain,gmane.comp.gcc.patches,gmane.comp.gcc.fortran
Organization Moene Computational Physics, Maartensdijk, The Netherlands
Message-ID <[email protected]>
On 3/13/26 16:47, Andre Vehreschild wrote:

> Hi Jakub,

>> Otherwise LGTM.
>>
>>> --- a/gcc/testsuite/gfortran.dg/coarray/caf.exp
>>> +++ b/gcc/testsuite/gfortran.dg/coarray/caf.exp
>>> @@ -123,7 +123,11 @@ foreach test [lsort [glob -nocomplain
>>> $srcdir/$subdir/*.\[fF\]{,90,95,03,08} ]] if { [istarget *-*-freebsd*] } {
>>>                   dg-test $test "-fcoarray=lib -pthread $flags -lcaf_shmem"
>>> {} } else {
>>> -                dg-test $test "-fcoarray=lib $flags -lcaf_shmem" {}
>>> +                if { [istarget *-linux*] } {
>>> +                    dg-test $test "-fcoarray=lib -pthread $flags
>>> -lcaf_shmem -lrt" {}
>>> +                } else {
>>> +                    dg-test $test "-fcoarray=lib $flags -lcaf_shmem" {}
>>> +                }
>>>               }
>>>               cleanup-modules ""
>>>           }
I was a bit doubtful that unconditionally adding -ptrhead -rt to every 
linux target out there would work, but apparently it did - my test this 
afternoon (Debian Testing as of March 2 with glibc-2.42 on aarch64):

https://gcc.gnu.org/pipermail/gcc-testresults/2026-March/871462.html


		=== gfortran Summary ===

# of expected passes		74474
# of expected failures		345
# of unsupported tests		208
/dev/shm/bld701060/gcc/gfortran  version 16.0.1 20260314 (experimental) 
[master r16-8091-g4f9e2843084] (GCC)

Kind regards,

-- 
Toon Moene - e-mail: [email protected] - phone: +31 346 214290
Saturnushof 14, 3738 XG  Maartensdijk, The Netherlands
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.