diff options
author | Jerry DeLisle <jvdelisle@gcc.gnu.org> | 2017-08-28 03:42:47 +0000 |
---|---|---|
committer | Jerry DeLisle <jvdelisle@gcc.gnu.org> | 2017-08-28 03:42:47 +0000 |
commit | bf498b07586693bd0751a7aed15be59cd3f96206 (patch) | |
tree | 59b1526c6a783bc51b642935f339b817ae44428b /libgfortran/io/write.c | |
parent | 77e320394453c43c4b452e1fdd5d829b1ee9bbe9 (diff) | |
download | gcc-bf498b07586693bd0751a7aed15be59cd3f96206.zip gcc-bf498b07586693bd0751a7aed15be59cd3f96206.tar.gz gcc-bf498b07586693bd0751a7aed15be59cd3f96206.tar.bz2 |
re PR fortran/78387 (OpenMP segfault/stack size exceeded writing to internal file)
2017-08-27 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR libgfortran/78387
* io/list_read.c (nml_read_obj): Remove use of stash.
* io/transfer.c (st_read_done, st_write_done): Likewise.
* io/unit.c (stash_internal_unit): Delete function.
(get_unit): Remove use of stash.
(init_units): Likewise.
(close_units): Likewise.
* io/write.c (nml_write_obj): Likewise:
From-SVN: r251374
Diffstat (limited to 'libgfortran/io/write.c')
-rw-r--r-- | libgfortran/io/write.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/libgfortran/io/write.c b/libgfortran/io/write.c index 8dbbb09..c9aad15 100644 --- a/libgfortran/io/write.c +++ b/libgfortran/io/write.c @@ -2248,11 +2248,6 @@ nml_write_obj (st_parameter_dt *dtp, namelist_info *obj, index_type offset, child_iomsg_len = IOMSG_LEN; } - /* If writing to an internal unit, stash it to allow - the child procedure to access it. */ - if (is_internal_unit (dtp)) - stash_internal_unit (dtp); - /* Call the user defined formatted WRITE procedure. */ dtp->u.p.current_unit->child_dtio++; if (obj->type == BT_DERIVED) |