[Fortran, Patch, PR57598] Fix coarray STOP

Jerry D jvdelisle2@gmail.com
Thu Dec 19 19:09:20 GMT 2024


On 12/19/24 4:13 AM, Andre Vehreschild 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

Yes, this is OK.

Thanks,

Jerry


More information about the Fortran mailing list