Fwd: [Patch, Fortran] STOP issue with coarrays
Damian Rouson
damian@sourceryinstitute.org
Mon Mar 28 15:51:00 GMT 2016
This is a resend after a bounce (hopefully the third time is the charm):
> Begin forwarded message:
>
> All,
>
> Fortran 2015 will allow non-constant stop codes in STOP and ERROR STOP. While eyes are on the STOP statement support, would this this be a good time to add this new Fortran 2015 capability to gfortran? I assume the changes would be on the compiler side only with no revision required for the library.
>
> Damian
>
>
>> On Mar 28, 2016, at 7:22 AM, Alessandro Fanfarillo <fanfarillo.gcc@gmail.com> wrote:
>>
>> Thanks for the quick feedback.
>>
>> The patch has been committed on trunk as rev. 234502 and on
>> gcc-5-branch as rev. 234503 .
>>
>> In attachment three simple test cases; coarray_stop_str.f90 fails
>> because of a syntax error in the check string.
>> I guess the problem is due to the presence of the "STOPPED" string
>> inside the check string; how can I manage this situation?
>>
>> Thanks,
>>
>> Alessandro
>>
>> PS: Paul, I see this as a good exercise before working on Failed Images :-).
>>
>>
>> 2016-03-27 19:14 GMT+02:00 Paul Richard Thomas <paul.richard.thomas@gmail.com>:
>>> Hi Alessandro,
>>>
>>> The patch is fine for trunk and 5-branch - going on trivial, I would
>>> say! Are you going to add the testcase?
>>>
>>> Thanks a lot! I am impressed that you are doing these between
>>> celebrating your doctorate and preparing for your move :-)
>>>
>>> Paul
>>>
>>> On 27 March 2016 at 17:10, Alessandro Fanfarillo
>>> <fanfarillo.gcc@gmail.com> wrote:
>>>> Dear all,
>>>>
>>>> the attached patch fixes the issue reported by Anton Shterenlikht
>>>> (https://gcc.gnu.org/ml/fortran/2016-03/msg00037.html). The compiler
>>>> delegates the external library to manage the STOP statement in case
>>>> -fcoarray=lib is used.
>>>>
>>>> Built and regtested on x86_64-pc-linux-gnu.
>>>>
>>>> Ok for trunk and gcc-5-branch?
>>>
>>>
>>>
>>> --
>>> The difference between genius and stupidity is; genius has its limits.
>>>
>>> Albert Einstein
>> <coarray_stop_nostr.f90><coarray_stop_numeric.f90><coarray_stop_str.f90>
>
> ________________________________
> Damian Rouson, Ph.D., P.E.
> President, Sourcery Institute
> http://www.sourceryinstitute.org
> +1-510-600-2992 (mobile)
>
________________________________
Damian Rouson, Ph.D., P.E.
President, Sourcery Institute
http://www.sourceryinstitute.org
+1-510-600-2992 (mobile)
More information about the Fortran
mailing list