diff options
author | bstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-02-07 19:21:59 +0000 |
---|---|---|
committer | bstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-02-07 19:21:59 +0000 |
commit | c82090b14a145f6549ff332d28ab976d4c5dcd99 (patch) | |
tree | 26026ebf7e1207ac436fa8542a84a2ef025455ef /libgfortran/io | |
parent | 669b096a5206cfb29e550997ab9ee60bf7ef7dfe (diff) | |
download | gcc-c82090b14a145f6549ff332d28ab976d4c5dcd99.tar.gz |
2010-02-06 Basile Starynkevitch <basile@starynkevitch.net>
MELT branch merged with trunk rev 156578
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/melt-branch@156580 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgfortran/io')
-rw-r--r-- | libgfortran/io/format.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/libgfortran/io/format.c b/libgfortran/io/format.c index 13516d2f8a6..68b9e992d6d 100644 --- a/libgfortran/io/format.c +++ b/libgfortran/io/format.c @@ -130,7 +130,7 @@ reset_fnode_counters (st_parameter_dt *dtp) /* Clear this pointer at the head so things start at the right place. */ fmt->array.array[0].current = NULL; - for (f = fmt->last->array[0].u.child; f; f = f->next) + for (f = fmt->array.array[0].u.child; f; f = f->next) reset_node (f); } @@ -1212,8 +1212,6 @@ revert (st_parameter_dt *dtp) /* parse_format()-- Parse a format string. */ -#define FORMAT_CACHE_STRING_LIMIT 256 - void parse_format (st_parameter_dt *dtp) { @@ -1222,8 +1220,7 @@ parse_format (st_parameter_dt *dtp) /* Don't cache for internal units and set an arbitrary limit on the size of format strings we will cache. (Avoids memory issues.) */ - format_cache_ok = !is_internal_unit (dtp) - && (dtp->format_len < FORMAT_CACHE_STRING_LIMIT ); + format_cache_ok = !is_internal_unit (dtp); /* Lookup format string to see if it has already been parsed. */ if (format_cache_ok) |