2018-07-31 Andre Vieira <andre.simoesdiasvieira@arm.com> Revert 'AsyncI/O patch committed' 2018-07-25 Nicolas Koenig <koenigni@gcc.gnu.org> Thomas Koenig <tkoenig@gcc.gnu.org> PR fortran/25829 * gfortran.texi: Add description of asynchronous I/O. * trans-decl.c (gfc_finish_var_decl): Treat asynchronous variables as volatile. * trans-io.c (gfc_build_io_library_fndecls): Rename st_wait to st_wait_async and change argument spec from ".X" to ".w". (gfc_trans_wait): Pass ID argument via reference. 2018-07-31 Andre Vieira <andre.simoesdiasvieira@arm.com> Revert 'AsyncI/O patch committed' 2018-07-25 Nicolas Koenig <koenigni@gcc.gnu.org> Thomas Koenig <tkoenig@gcc.gnu.org> PR fortran/25829 * gfortran.dg/f2003_inquire_1.f03: Add write statement. * gfortran.dg/f2003_io_1.f03: Add wait statement. 2018-07-31 Andre Vieira <andre.simoesdiasvieira@arm.com> Revert 'AsyncI/O patch committed' 2018-07-25 Nicolas Koenig <koenigni@gcc.gnu.org> Thomas Koenig <tkoenig@gcc.gnu.org> PR fortran/25829 * Makefile.am: Add async.c to gfor_io_src. Add async.h to gfor_io_headers. * Makefile.in: Regenerated. * gfortran.map: Add _gfortran_st_wait_async. * io/async.c: New file. * io/async.h: New file. * io/close.c: Include async.h. (st_close): Call async_wait for an asynchronous unit. * io/file_pos.c (st_backspace): Likewise. (st_endfile): Likewise. (st_rewind): Likewise. (st_flush): Likewise. * io/inquire.c: Add handling for asynchronous PENDING and ID arguments. * io/io.h (st_parameter_dt): Add async bit. (st_parameter_wait): Correct. (gfc_unit): Add au pointer. (st_wait_async): Add prototype. (transfer_array_inner): Likewise. (st_write_done_worker): Likewise. * io/open.c: Include async.h. (new_unit): Initialize asynchronous unit. * io/transfer.c (async_opt): New struct. (wrap_scalar_transfer): New function. (transfer_integer): Call wrap_scalar_transfer to do the work. (transfer_real): Likewise. (transfer_real_write): Likewise. (transfer_character): Likewise. (transfer_character_wide): Likewise. (transfer_complex): Likewise. (transfer_array_inner): New function. (transfer_array): Call transfer_array_inner. (transfer_derived): Call wrap_scalar_transfer. (data_transfer_init): Check for asynchronous I/O. Perform a wait operation on any pending asynchronous I/O if the data transfer is synchronous. Copy PDT and enqueue thread for data transfer. (st_read_done_worker): New function. (st_read_done): Enqueue transfer or call st_read_done_worker. (st_write_done_worker): New function. (st_write_done): Enqueue transfer or call st_read_done_worker. (st_wait): Document as no-op for compatibility reasons. (st_wait_async): New function. * io/unit.c (insert_unit): Use macros LOCK, UNLOCK and TRYLOCK; add NOTE where necessary. (get_gfc_unit): Likewise. (init_units): Likewise. (close_unit_1): Likewise. Call async_close if asynchronous. (close_unit): Use macros LOCK and UNLOCK. (finish_last_advance_record): Likewise. (newunit_alloc): Likewise. * io/unix.c (find_file): Likewise. (flush_all_units_1): Likewise. (flush_all_units): Likewise. * libgfortran.h (generate_error_common): Add prototype. * runtime/error.c: Include io.h and async.h. (generate_error_common): New function. 2018-07-31 Andre Vieira <andre.simoesdiasvieira@arm.com> Revert 'AsyncI/O patch committed'. 2018-07-25 Nicolas Koenig <koenigni@gcc.gnu.org> Thomas Koenig <tkoenig@gcc.gnu.org> PR fortran/25829 * testsuite/libgomp.fortran/async_io_1.f90: New test. * testsuite/libgomp.fortran/async_io_2.f90: New test. * testsuite/libgomp.fortran/async_io_3.f90: New test. * testsuite/libgomp.fortran/async_io_4.f90: New test. * testsuite/libgomp.fortran/async_io_5.f90: New test. * testsuite/libgomp.fortran/async_io_6.f90: New test. * testsuite/libgomp.fortran/async_io_7.f90: New test. From-SVN: r263082
| Name |
Last commit
|
Last update |
|---|---|---|
| .. | ||
| ChangeLog | Loading commit data... | |
| ChangeLog-2002 | Loading commit data... | |
| ChangeLog-2003 | Loading commit data... | |
| ChangeLog-2004 | Loading commit data... | |
| ChangeLog-2005 | Loading commit data... | |
| ChangeLog-2006 | Loading commit data... | |
| ChangeLog-2007 | Loading commit data... | |
| ChangeLog-2008 | Loading commit data... | |
| ChangeLog-2009 | Loading commit data... | |
| ChangeLog-2010 | Loading commit data... | |
| ChangeLog-2011 | Loading commit data... | |
| ChangeLog-2012 | Loading commit data... | |
| ChangeLog-2013 | Loading commit data... | |
| ChangeLog-2014 | Loading commit data... | |
| ChangeLog-2015 | Loading commit data... | |
| ChangeLog-2016 | Loading commit data... | |
| ChangeLog-2017 | Loading commit data... | |
| ChangeLog.ptr | Loading commit data... | |
| Make-lang.in | Loading commit data... | |
| arith.c | Loading commit data... | |
| arith.h | Loading commit data... | |
| array.c | Loading commit data... | |
| bbt.c | Loading commit data... | |
| check.c | Loading commit data... | |
| class.c | Loading commit data... | |
| config-lang.in | Loading commit data... | |
| constructor.c | Loading commit data... | |
| constructor.h | Loading commit data... | |
| convert.c | Loading commit data... | |
| cpp.c | Loading commit data... | |
| cpp.h | Loading commit data... | |
| data.c | Loading commit data... | |
| data.h | Loading commit data... | |
| decl.c | Loading commit data... | |
| dependency.c | Loading commit data... | |
| dependency.h | Loading commit data... | |
| dump-parse-tree.c | Loading commit data... | |
| error.c | Loading commit data... | |
| expr.c | Loading commit data... | |
| f95-lang.c | Loading commit data... | |
| frontend-passes.c | Loading commit data... | |
| gfc-diagnostic.def | Loading commit data... | |
| gfc-internals.texi | Loading commit data... | |
| gfortran.h | Loading commit data... | |
| gfortran.texi | Loading commit data... | |
| gfortranspec.c | Loading commit data... | |
| interface.c | Loading commit data... | |
| intrinsic.c | Loading commit data... | |
| intrinsic.h | Loading commit data... | |
| intrinsic.texi | Loading commit data... | |
| invoke.texi | Loading commit data... | |
| io.c | Loading commit data... | |
| ioparm.def | Loading commit data... | |
| iresolve.c | Loading commit data... | |
| iso-c-binding.def | Loading commit data... | |
| iso-fortran-env.def | Loading commit data... | |
| lang-specs.h | Loading commit data... | |
| lang.opt | Loading commit data... | |
| libgfortran.h | Loading commit data... | |
| match.c | Loading commit data... | |
| match.h | Loading commit data... | |
| matchexp.c | Loading commit data... | |
| mathbuiltins.def | Loading commit data... | |
| misc.c | Loading commit data... | |
| module.c | Loading commit data... | |
| openmp.c | Loading commit data... | |
| options.c | Loading commit data... | |
| parse.c | Loading commit data... | |
| parse.h | Loading commit data... | |
| primary.c | Loading commit data... | |
| resolve.c | Loading commit data... | |
| scanner.c | Loading commit data... | |
| scanner.h | Loading commit data... | |
| simplify.c | Loading commit data... | |
| st.c | Loading commit data... | |
| symbol.c | Loading commit data... | |
| target-memory.c | Loading commit data... | |
| target-memory.h | Loading commit data... | |
| trans-array.c | Loading commit data... | |
| trans-array.h | Loading commit data... | |
| trans-common.c | Loading commit data... | |
| trans-const.c | Loading commit data... | |
| trans-const.h | Loading commit data... | |
| trans-decl.c | Loading commit data... | |
| trans-expr.c | Loading commit data... | |
| trans-intrinsic.c | Loading commit data... | |
| trans-io.c | Loading commit data... | |
| trans-openmp.c | Loading commit data... | |
| trans-stmt.c | Loading commit data... | |
| trans-stmt.h | Loading commit data... | |
| trans-types.c | Loading commit data... | |
| trans-types.h | Loading commit data... | |
| trans.c | Loading commit data... | |
| trans.h | Loading commit data... | |
| types.def | Loading commit data... |