I don’t think the standard requires providing the stop code to the OS, but it recommends doing so. So this is a great idea. Thanks for working on coarray features.
Damian On Thu, Dec 19, 2024 at 04:14 Andre Vehreschild <ve...@gmx.de> wrote: > Hi all, > > attached patch fixes a rather old open issue, that I stumbled upon > while trying to figure, why a test failed on the command line but not > in the testsuite. The implementation of the STOP command in caf_single > did not hand the errorcode over to the OS, as does non-caf STOP and as > it is required by the standard. So I fixed that. I also added reporting > of exceptions to the coarray (ERROR)? STOP routines. For this I have > exported the existing function of the regular gfortran runtime library. > I tried to do this via iexport_proto, but was never able to access the > routine from the caf-library. I always got linker errors. > > After fixing caf-STOP the testsuite reported one regression, which I > also fixed in send_by_ref. > > Bootstrapped and regtests ok on x86_64-pc-linux-gnu / F41. Ok for > mainline? > > Regards, > Andre > -- > Andre Vehreschild * Email: vehre ad gcc dot gnu dot org >