This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch, fortran] Set implicit ASYNCHRONOUS attribute
- From: Jerry DeLisle <jvdelisle at charter dot net>
- To: Thomas Koenig <tkoenig at netcologne dot de>, "fortran at gcc dot gnu dot org" <fortran at gcc dot gnu dot org>, gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: Fri, 6 Oct 2017 19:47:01 -0700
- Subject: Re: [patch, fortran] Set implicit ASYNCHRONOUS attribute
- Authentication-results: sourceware.org; auth=none
- References: <79bae0fe-3a6b-71ff-46de-4bb08ec2de5c@netcologne.de>
On 10/04/2017 02:41 PM, Thomas Koenig wrote:
> Hello world,
>
> the attached patch sets the implicit ASYNCHRONPUS according to F2008,
> 9.6.2.5:
>
> # If a variable is used in an asynchronous data transfer statement as
> # • an item in an input/output list,
> # • a group object in a namelist, or
> # • a SIZE= specifier
> # the base object of the data-ref is implicitly given the ASYNCHRONOUS attribute
> in the scoping unit of the
> # data transfer statement. This attribute may be confirmed by explicit declaration.
>
> At the moment, the only thing this does is show up on the fortran tree
> dump. This will hopefully change once asynchronous I/O is implemented.
> And if you are wondering why I put setting the global variable into
> check_io_constraints: It is because the parsing of the YES/NO
> is done there, and I didn't want to duplicate the code.
>
> No test case because we don't (yet) have tests for -fdump-fortran-original.
>
> Regression-tested. OK for trunk?
OK and thanks for the patch.
Jerry