[Patch, fortran] PR35339 Optimize implied do loops in io statements
Nicolas Koenig
koenigni@student.ethz.ch
Sat Jun 3 13:48:00 GMT 2017
Hello everyone,
here is a version of the patch that includes a workaround for PR 80960.
I have also included a separate test case for the failure that Dominique
detected. The style issues should be fixed.
Regression-tested. OK for trunk?
Nicolas
Changelog:
2017-06-03 Nicolas Koenig <koenigni@student.ethz.ch>
PR fortran/35339
* frontend-passes.c (traverse_io_block): New function.
(simplify_io_impl_do): New function.
(optimize_namespace): Invoke gfc_code_walker with
simplify_io_impl_do.
2017-06-03 Nicolas Koenig <koenigni@student.ethz.ch>
PR fortran/35339
* gfortran.dg/implied_do_io_1.f90: New Test.
* gfortran.dg/implied_do_io_2.f90: New Test.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: p9.diff
Type: text/x-patch
Size: 9861 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20170603/679e8b91/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: implied_do_io_1.f90
Type: text/x-fortran
Size: 1743 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20170603/679e8b91/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: implied_do_io_2.f90
Type: text/x-fortran
Size: 615 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20170603/679e8b91/attachment-0002.bin>
More information about the Fortran
mailing list