public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libfortran/20930] New: [4.0 Regression] gfortran.dg/backspace.f execution test
@ 2005-04-10 16:32 danglin at gcc dot gnu dot org
2005-04-10 16:34 ` [Bug libfortran/20930] " pinskia at gcc dot gnu dot org
` (13 more replies)
0 siblings, 14 replies; 15+ messages in thread
From: danglin at gcc dot gnu dot org @ 2005-04-10 16:32 UTC (permalink / raw)
To: gcc-bugs
Executing on host: /test/gnu/gcc-3.3/objdir/gcc/testsuite/../gfortran -B/test/gn
u/gcc-3.3/objdir/gcc/testsuite/../ /test/gnu/gcc-3.3/gcc/gcc/testsuite/gfortran.
dg/backspace.f -O0 -pedantic-errors -L/test/gnu/gcc-3.3/objdir/hppa64-hp-hp
ux11.11/./libgfortran/.libs -L/test/gnu/gcc-3.3/objdir/hppa64-hp-hpux11.11/./lib
iberty -lm -o ./backspace.exe (timeout = 300)
PASS: gfortran.dg/backspace.f -O0 (test for excess errors)
Setting LD_LIBRARY_PATH to .:/test/gnu/gcc-3.3/objdir/hppa64-hp-hpux11.11/./libg
fortran/.libs:/test/gnu/gcc-3.3/objdir/gcc:.:/test/gnu/gcc-3.3/objdir/hppa64-hp-
hpux11.11/./libgfortran/.libs:/test/gnu/gcc-3.3/objdir/gcc:/opt/gnu64/gcc/gcc-3.
5.0/lib
FAIL: gfortran.dg/backspace.f -O0 execution test
--
Summary: [4.0 Regression] gfortran.dg/backspace.f execution test
Product: gcc
Version: 4.0.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: libfortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: danglin at gcc dot gnu dot org
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: hppa*-*-hpux*
GCC host triplet: hppa*-*-hpux*
GCC target triplet: hppa*-*-hpux*
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20930
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug libfortran/20930] [4.0 Regression] gfortran.dg/backspace.f execution test
2005-04-10 16:32 [Bug libfortran/20930] New: [4.0 Regression] gfortran.dg/backspace.f execution test danglin at gcc dot gnu dot org
@ 2005-04-10 16:34 ` pinskia at gcc dot gnu dot org
2005-04-10 16:39 ` danglin at gcc dot gnu dot org
` (12 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-04-10 16:34 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-04-10 16:34 -------
Does this work on the mainline?
If so the following patch fixes it:
2005-04-08 Eric Botcazou <ebotcazou@libertysurf.fr>
* io/backspace.c (unformatted_backspace): Do not dereference
the pointer to the stream.
--
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |4.0.1
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20930
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug libfortran/20930] [4.0 Regression] gfortran.dg/backspace.f execution test
2005-04-10 16:32 [Bug libfortran/20930] New: [4.0 Regression] gfortran.dg/backspace.f execution test danglin at gcc dot gnu dot org
2005-04-10 16:34 ` [Bug libfortran/20930] " pinskia at gcc dot gnu dot org
@ 2005-04-10 16:39 ` danglin at gcc dot gnu dot org
2005-04-10 16:42 ` pinskia at gcc dot gnu dot org
` (11 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: danglin at gcc dot gnu dot org @ 2005-04-10 16:39 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From danglin at gcc dot gnu dot org 2005-04-10 16:39 -------
Eric's patch went in after my last mainline build and codesourcery isn't building
fortran. I'll check.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20930
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug libfortran/20930] [4.0 Regression] gfortran.dg/backspace.f execution test
2005-04-10 16:32 [Bug libfortran/20930] New: [4.0 Regression] gfortran.dg/backspace.f execution test danglin at gcc dot gnu dot org
2005-04-10 16:34 ` [Bug libfortran/20930] " pinskia at gcc dot gnu dot org
2005-04-10 16:39 ` danglin at gcc dot gnu dot org
@ 2005-04-10 16:42 ` pinskia at gcc dot gnu dot org
2005-04-25 19:10 ` dje at gcc dot gnu dot org
` (10 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-04-10 16:42 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-04-10 16:42 -------
Hmm, it is on the 4.0 branch too so it might not have fixed it.
I think powerpc-aix is also seeing the same failure.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20930
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug libfortran/20930] [4.0 Regression] gfortran.dg/backspace.f execution test
2005-04-10 16:32 [Bug libfortran/20930] New: [4.0 Regression] gfortran.dg/backspace.f execution test danglin at gcc dot gnu dot org
` (2 preceding siblings ...)
2005-04-10 16:42 ` pinskia at gcc dot gnu dot org
@ 2005-04-25 19:10 ` dje at gcc dot gnu dot org
2005-04-26 18:35 ` dje at gcc dot gnu dot org
` (9 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: dje at gcc dot gnu dot org @ 2005-04-25 19:10 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From dje at gcc dot gnu dot org 2005-04-25 19:10 -------
The problem (on AIX) appears to be related to reaching the end of file.
Specifically,
nr=0
20 continue
read (3,end=30,err=90) n, (x(n),n=1,10)
nr=nr+1
goto 30
30 continue
counts the number of records. When EOF is encountered, succeeding reads do
not operate correctly. I suspect something is not being reset correctly in
the I/O subsystem.
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |dje at gcc dot gnu dot org
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
GCC build triplet|hppa*-*-hpux* |hppa*-*-hpux*. powerpc-ibm-
| |aix*
GCC host triplet|hppa*-*-hpux* |hppa*-*-hpux*, powerpc-ibm-
| |aix*
GCC target triplet|hppa*-*-hpux* |hppa*-*-hpux*, powerpc-ibm-
| |aix*
Last reconfirmed|0000-00-00 00:00:00 |2005-04-25 19:10:31
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20930
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug libfortran/20930] [4.0 Regression] gfortran.dg/backspace.f execution test
2005-04-10 16:32 [Bug libfortran/20930] New: [4.0 Regression] gfortran.dg/backspace.f execution test danglin at gcc dot gnu dot org
` (3 preceding siblings ...)
2005-04-25 19:10 ` dje at gcc dot gnu dot org
@ 2005-04-26 18:35 ` dje at gcc dot gnu dot org
2005-04-26 18:53 ` dje at gcc dot gnu dot org
` (8 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: dje at gcc dot gnu dot org @ 2005-04-26 18:35 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From dje at gcc dot gnu dot org 2005-04-26 18:33 -------
The problem is due to libgfortran not flushing the record length marker to the
file. transfer.c:next_record_w() copies the record length into the buffer,
but does not ensure that the buffer gets flushed to the file. At a later
point, libgfortran seeks past the file position and then back, which the UNIX
standard allows the OS to fill with zeroes. next_record_w() calls sfree(),
but sfree() specifically does not flush the buffer if operating on the
small_buffer in the unix_stream structure or the stream is buffered.
Presumably when switching from writing to reading, the buffer should be
flushed.
The call to REWIND sets the mode to reading and truncates the file before the
call to flush in data_transfer_init() could occur.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20930
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug libfortran/20930] [4.0 Regression] gfortran.dg/backspace.f execution test
2005-04-10 16:32 [Bug libfortran/20930] New: [4.0 Regression] gfortran.dg/backspace.f execution test danglin at gcc dot gnu dot org
` (4 preceding siblings ...)
2005-04-26 18:35 ` dje at gcc dot gnu dot org
@ 2005-04-26 18:53 ` dje at gcc dot gnu dot org
2005-04-26 21:57 ` [Bug libfortran/20930] [4.0/4.1 " pinskia at gcc dot gnu dot org
` (7 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: dje at gcc dot gnu dot org @ 2005-04-26 18:53 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From dje at gcc dot gnu dot org 2005-04-26 18:53 -------
Patch:
http://gcc.gnu.org/ml/gcc-patches/2005-04/msg02697.html
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20930
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug libfortran/20930] [4.0/4.1 Regression] gfortran.dg/backspace.f execution test
2005-04-10 16:32 [Bug libfortran/20930] New: [4.0 Regression] gfortran.dg/backspace.f execution test danglin at gcc dot gnu dot org
` (5 preceding siblings ...)
2005-04-26 18:53 ` dje at gcc dot gnu dot org
@ 2005-04-26 21:57 ` pinskia at gcc dot gnu dot org
2005-05-03 18:26 ` pinskia at gcc dot gnu dot org
` (6 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-04-26 21:57 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-04-26 21:57 -------
John, does this work now?
--
What |Removed |Added
----------------------------------------------------------------------------
URL| |http://gcc.gnu.org/ml/gcc-
| |patches/2005-
| |04/msg02697.html
Keywords| |patch
Summary|[4.0 Regression] |[4.0/4.1 Regression]
|gfortran.dg/backspace.f |gfortran.dg/backspace.f
|execution test |execution test
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20930
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug libfortran/20930] [4.0/4.1 Regression] gfortran.dg/backspace.f execution test
2005-04-10 16:32 [Bug libfortran/20930] New: [4.0 Regression] gfortran.dg/backspace.f execution test danglin at gcc dot gnu dot org
` (6 preceding siblings ...)
2005-04-26 21:57 ` [Bug libfortran/20930] [4.0/4.1 " pinskia at gcc dot gnu dot org
@ 2005-05-03 18:26 ` pinskia at gcc dot gnu dot org
2005-05-03 22:39 ` dave at hiauly1 dot hia dot nrc dot ca
` (5 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-05-03 18:26 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-05-03 18:24 -------
(In reply to comment #7)
> John, does this work now?
Ping,
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20930
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug libfortran/20930] [4.0/4.1 Regression] gfortran.dg/backspace.f execution test
2005-04-10 16:32 [Bug libfortran/20930] New: [4.0 Regression] gfortran.dg/backspace.f execution test danglin at gcc dot gnu dot org
` (7 preceding siblings ...)
2005-05-03 18:26 ` pinskia at gcc dot gnu dot org
@ 2005-05-03 22:39 ` dave at hiauly1 dot hia dot nrc dot ca
2005-05-14 20:58 ` [Bug libfortran/20930] [4.0 " danglin at gcc dot gnu dot org
` (4 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: dave at hiauly1 dot hia dot nrc dot ca @ 2005-05-03 22:39 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From dave at hiauly1 dot hia dot nrc dot ca 2005-05-03 22:39 -------
Subject: Re: [4.0/4.1 Regression] gfortran.dg/backspace.f execution test
> ------- Additional Comments From pinskia at gcc dot gnu dot org 2005-05-03 18:24 -------
> (In reply to comment #7)
> > John, does this work now?
> Ping,
Yes. See <http://gcc.gnu.org/ml/gcc-testresults/2005-05/msg00184.html>.
Dave
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20930
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug libfortran/20930] [4.0 Regression] gfortran.dg/backspace.f execution test
2005-04-10 16:32 [Bug libfortran/20930] New: [4.0 Regression] gfortran.dg/backspace.f execution test danglin at gcc dot gnu dot org
` (8 preceding siblings ...)
2005-05-03 22:39 ` dave at hiauly1 dot hia dot nrc dot ca
@ 2005-05-14 20:58 ` danglin at gcc dot gnu dot org
2005-05-15 19:54 ` dje at gcc dot gnu dot org
` (3 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: danglin at gcc dot gnu dot org @ 2005-05-14 20:58 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From danglin at gcc dot gnu dot org 2005-05-14 20:58 -------
See comment #9.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20930
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug libfortran/20930] [4.0 Regression] gfortran.dg/backspace.f execution test
2005-04-10 16:32 [Bug libfortran/20930] New: [4.0 Regression] gfortran.dg/backspace.f execution test danglin at gcc dot gnu dot org
` (9 preceding siblings ...)
2005-05-14 20:58 ` [Bug libfortran/20930] [4.0 " danglin at gcc dot gnu dot org
@ 2005-05-15 19:54 ` dje at gcc dot gnu dot org
2005-06-07 19:16 ` dje at gcc dot gnu dot org
` (2 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: dje at gcc dot gnu dot org @ 2005-05-15 19:54 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From dje at gcc dot gnu dot org 2005-05-15 19:54 -------
This bug has not been fixed on the 4.0 branch
--
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|FIXED |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20930
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug libfortran/20930] [4.0 Regression] gfortran.dg/backspace.f execution test
2005-04-10 16:32 [Bug libfortran/20930] New: [4.0 Regression] gfortran.dg/backspace.f execution test danglin at gcc dot gnu dot org
` (10 preceding siblings ...)
2005-05-15 19:54 ` dje at gcc dot gnu dot org
@ 2005-06-07 19:16 ` dje at gcc dot gnu dot org
2005-06-11 20:21 ` cvs-commit at gcc dot gnu dot org
2005-06-13 3:23 ` pinskia at gcc dot gnu dot org
13 siblings, 0 replies; 15+ messages in thread
From: dje at gcc dot gnu dot org @ 2005-06-07 19:16 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From dje at gcc dot gnu dot org 2005-06-07 19:15 -------
gfortran patches are not being backported as originally promised.
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |mark at codesourcery dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20930
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug libfortran/20930] [4.0 Regression] gfortran.dg/backspace.f execution test
2005-04-10 16:32 [Bug libfortran/20930] New: [4.0 Regression] gfortran.dg/backspace.f execution test danglin at gcc dot gnu dot org
` (11 preceding siblings ...)
2005-06-07 19:16 ` dje at gcc dot gnu dot org
@ 2005-06-11 20:21 ` cvs-commit at gcc dot gnu dot org
2005-06-13 3:23 ` pinskia at gcc dot gnu dot org
13 siblings, 0 replies; 15+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-06-11 20:21 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2005-06-11 20:21 -------
Subject: Bug 20930
CVSROOT: /cvs/gcc
Module name: gcc
Branch: gcc-4_0-branch
Changes by: dje@gcc.gnu.org 2005-06-11 20:21:41
Modified files:
libgfortran : ChangeLog
libgfortran/io : rewind.c
Log message:
Backport from mainline:
PR libfortran/20930
* io/rewind.c (st_rewind): Flush the stream when resetting the mode
from WRITING to READING.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libgfortran/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.163.2.48&r2=1.163.2.49
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libgfortran/io/rewind.c.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.9&r2=1.9.10.1
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20930
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug libfortran/20930] [4.0 Regression] gfortran.dg/backspace.f execution test
2005-04-10 16:32 [Bug libfortran/20930] New: [4.0 Regression] gfortran.dg/backspace.f execution test danglin at gcc dot gnu dot org
` (12 preceding siblings ...)
2005-06-11 20:21 ` cvs-commit at gcc dot gnu dot org
@ 2005-06-13 3:23 ` pinskia at gcc dot gnu dot org
13 siblings, 0 replies; 15+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-06-13 3:23 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-06-13 03:23 -------
Fixed.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|REOPENED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20930
^ permalink raw reply [flat|nested] 15+ messages in thread
end of thread, other threads:[~2005-06-13 3:23 UTC | newest]
Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-04-10 16:32 [Bug libfortran/20930] New: [4.0 Regression] gfortran.dg/backspace.f execution test danglin at gcc dot gnu dot org
2005-04-10 16:34 ` [Bug libfortran/20930] " pinskia at gcc dot gnu dot org
2005-04-10 16:39 ` danglin at gcc dot gnu dot org
2005-04-10 16:42 ` pinskia at gcc dot gnu dot org
2005-04-25 19:10 ` dje at gcc dot gnu dot org
2005-04-26 18:35 ` dje at gcc dot gnu dot org
2005-04-26 18:53 ` dje at gcc dot gnu dot org
2005-04-26 21:57 ` [Bug libfortran/20930] [4.0/4.1 " pinskia at gcc dot gnu dot org
2005-05-03 18:26 ` pinskia at gcc dot gnu dot org
2005-05-03 22:39 ` dave at hiauly1 dot hia dot nrc dot ca
2005-05-14 20:58 ` [Bug libfortran/20930] [4.0 " danglin at gcc dot gnu dot org
2005-05-15 19:54 ` dje at gcc dot gnu dot org
2005-06-07 19:16 ` dje at gcc dot gnu dot org
2005-06-11 20:21 ` cvs-commit at gcc dot gnu dot org
2005-06-13 3:23 ` pinskia at gcc dot gnu dot org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).