summaryrefslogtreecommitdiff
path: root/libgfortran
diff options
context:
space:
mode:
authorfxcoudert <fxcoudert@138bc75d-0d04-0410-961f-82ee72b054a4>2005-03-16 19:32:08 +0000
committerfxcoudert <fxcoudert@138bc75d-0d04-0410-961f-82ee72b054a4>2005-03-16 19:32:08 +0000
commit5c40d3bf215793c8af1e4381ad1b536a14e86f27 (patch)
tree00bdd7fc6d53ed5b595fe99920373b15b9c2e3ca /libgfortran
parent586679065d896eb39ec6b2d4e2cde59fc5c04bb8 (diff)
downloadgcc-5c40d3bf215793c8af1e4381ad1b536a14e86f27.tar.gz
* open.c (new_unit): set record length to max_offset rather than
using a hard-coded limit (which was too low). * write_big_array.f90: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@96573 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgfortran')
-rw-r--r--libgfortran/ChangeLog6
-rw-r--r--libgfortran/io/open.c2
2 files changed, 7 insertions, 1 deletions
diff --git a/libgfortran/ChangeLog b/libgfortran/ChangeLog
index 43a2d9d39fb..b18aa05fcb1 100644
--- a/libgfortran/ChangeLog
+++ b/libgfortran/ChangeLog
@@ -1,5 +1,11 @@
2005-03-16 Francois-Xavier Coudert <coudert@clipper.ens.fr>
+ PR libfortran/20257
+ * open.c (new_unit): set record length to max_offset rather than
+ using a hard-coded limit (which was too low).
+
+2005-03-16 Francois-Xavier Coudert <coudert@clipper.ens.fr>
+
PR libfortran/20480
* write.c (output_float): special check when writing 0.0 with
EN and ES formats.
diff --git a/libgfortran/io/open.c b/libgfortran/io/open.c
index eaeb5a298c0..3d0e5bebe7a 100644
--- a/libgfortran/io/open.c
+++ b/libgfortran/io/open.c
@@ -358,7 +358,7 @@ new_unit (unit_flags * flags)
/* Unspecified recl ends up with a processor dependent value. */
- u->recl = (ioparm.recl_in != 0) ? ioparm.recl_in : DEFAULT_RECL;
+ u->recl = (ioparm.recl_in != 0) ? ioparm.recl_in : g.max_offset;
u->last_record = 0;
u->current_record = 0;