This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libfortran/34328] access="stream",form="formatted" doesn't buffer
- From: "tkoenig at netcologne dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 4 Dec 2007 07:03:53 -0000
- Subject: [Bug libfortran/34328] access="stream",form="formatted" doesn't buffer
- References: <bug-34328-10391@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #3 from tkoenig at netcologne dot de 2007-12-04 07:03 -------
Subject: Re: access="stream",form="formatted"
doesn't buffer
On Tue, 2007-12-04 at 02:36 +0000, jvdelisle at gcc dot gnu dot org
wrote:
>
> $ strace -e write,read,_llseek ./a.out
> read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\00004\1\0\0\0\0\0"...,
> 832) = 832
> read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0`>\240\f7\0\0\0"...,
> 832) = 832
> read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\340\'\0\0\0\0\0\0"...,
> 832) = 832
> read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\320\333a\f7\0\0\0"...,
> 832) = 832
> write(3, "a\na\na\na\na\na\na\na\na\na\na\na\na\na\na\na\n"..., 200) = 200
>
> This is with current trunk. I got rid of the extra flush when I committed the
> last patch. I tested it after it was mentioned on IRC. (see PR33985) Thomas,
> you spotted it.
Yes, I now get the same result (after correctly upgrading).
Thanks Jerry!
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34328