[Bug libfortran/19595] eor does not work

2005-04-10 Thread tkoenig at gcc dot gnu dot org

--- Additional Comments From tkoenig at gcc dot gnu dot org  2005-04-10 
08:39 ---
Fixed in 4.1.0, waiting for 4.0 to reopen.

-- 
   What|Removed |Added

   Keywords||patch
  Known to work||4.1.0


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19595


[Bug libfortran/19595] eor does not work

2005-04-10 Thread cvs-commit at gcc dot gnu dot org

--- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-04-10 
08:36 ---
Subject: Bug 19595

CVSROOT:/cvs/gcc
Module name:gcc
Changes by: [EMAIL PROTECTED]   2005-04-10 08:35:40

Modified files:
libgfortran: ChangeLog 
libgfortran/io : transfer.c 
gcc/testsuite  : ChangeLog 
Added files:
gcc/testsuite/gfortran.dg: eor_handling_1.f90 eor_handling_2.f90 
   eor_handling_3.f90 eor_handling_4.f90 
   eor_handling_5.f90 noadv_size.f90 
   pad_no.f90 

Log message:
2005-04-10  Thomas Koenig <[EMAIL PROTECTED]>

PR libfortran/17992
PR libfortran/19568
PR libfortran/19595
PR libfortran/20005
PR libfortran/20092
PR libfortran/20131
PR libfortran/20138
PR libfortran/20661
PR libfortran/20744
* io/transfer.c (top level): eor_condition: New static variable.
(read_sf): Remove unnecessary zeroing of buffer (there is enough
information in its length).
Return a string of length 0 (to be padded by caller) if EOR was
seen previously.
Remove erroneous special casing of EOR for standard input.
Set eor_condition for non-advancing I/O if an end of line was
detected.
Increment ioparm.size if necessary.
(formatted_transfer):  Skip the function if there is an EOR condition.
(data_transfer_init):  Initialize eor_condition to zero (false).
(next_record_r):  Clear sf_seen_eor if a \n has been seen already.
(finalize_transfer):  If there is an EOR condition, raise the error.

2005-04-10   Thomas Koenig  <[EMAIL PROTECTED]>

* eor_handling_1.f90: New test case.
* eor_handling_2.f90: New test case.
* eor_handling_3.f90: New test case.
* eor_handling_4.f90: New test case.
* eor_handling_5.f90: New test case.
* noadv_size.f90: New test case.
* pad_no.f90: New test case.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libgfortran/ChangeLog.diff?cvsroot=gcc&r1=1.188&r2=1.189
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libgfortran/io/transfer.c.diff?cvsroot=gcc&r1=1.35&r2=1.36
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.5320&r2=1.5321
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gfortran.dg/eor_handling_1.f90.diff?cvsroot=gcc&r1=NONE&r2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gfortran.dg/eor_handling_2.f90.diff?cvsroot=gcc&r1=NONE&r2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gfortran.dg/eor_handling_3.f90.diff?cvsroot=gcc&r1=NONE&r2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gfortran.dg/eor_handling_4.f90.diff?cvsroot=gcc&r1=NONE&r2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gfortran.dg/eor_handling_5.f90.diff?cvsroot=gcc&r1=NONE&r2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gfortran.dg/noadv_size.f90.diff?cvsroot=gcc&r1=NONE&r2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gfortran.dg/pad_no.f90.diff?cvsroot=gcc&r1=NONE&r2=1.1



-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19595


[Bug libfortran/19595] eor does not work

2005-02-12 Thread pinskia at gcc dot gnu dot org


-- 
   What|Removed |Added

 Status|REOPENED|NEW


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19595


[Bug libfortran/19595] eor does not work

2005-02-02 Thread Thomas dot Koenig at online dot de

--- Additional Comments From Thomas dot Koenig at online dot de  2005-02-02 
21:07 ---
The patch for the first part of the bug is applied,
the second part is still open.  Removed patch keyword
accordingly.



-- 
   What|Removed |Added

   Keywords|patch   |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19595


[Bug libfortran/19595] eor does not work

2005-01-30 Thread pinskia at gcc dot gnu dot org


-- 
   What|Removed |Added

   Target Milestone|4.0.0   |---


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19595


[Bug libfortran/19595] eor does not work

2005-01-29 Thread pbrook at gcc dot gnu dot org

--- Additional Comments From pbrook at gcc dot gnu dot org  2005-01-29 
15:47 ---
.

-- 
   What|Removed |Added

 Status|RESOLVED|REOPENED
 Resolution|FIXED   |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19595


[Bug libfortran/19595] eor does not work

2005-01-29 Thread pbrook at gcc dot gnu dot org

--- Additional Comments From pbrook at gcc dot gnu dot org  2005-01-29 
15:47 ---
Whoops, maybe not fixed.

-- 
   What|Removed |Added

   Last reconfirmed|2005-01-26 21:48:45 |2005-01-29 15:47:00
   date||


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19595


[Bug libfortran/19595] eor does not work

2005-01-29 Thread pbrook at gcc dot gnu dot org

--- Additional Comments From pbrook at gcc dot gnu dot org  2005-01-29 
15:46 ---
Fixed.

-- 
   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED
   Target Milestone|--- |4.0.0


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19595


[Bug libfortran/19595] eor does not work

2005-01-29 Thread cvs-commit at gcc dot gnu dot org

--- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-01-29 
15:45 ---
Subject: Bug 19595

CVSROOT:/cvs/gcc
Module name:gcc
Changes by: [EMAIL PROTECTED]   2005-01-29 15:45:17

Modified files:
gcc/testsuite  : ChangeLog 
libgfortran: ChangeLog 
libgfortran/io : transfer.c 
Added files:
gcc/testsuite/gfortran.dg: eor_1.f90 

Log message:
2005-01-29  Thomas Koenig  <[EMAIL PROTECTED]>

PR libfortran/19595
* io/transfer.c (data_transfer_init): eor requires advance="NO".
testsuite/
* gfortran.dg/eor_1.f90:  New test.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.4954&r2=1.4955
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gfortran.dg/eor_1.f90.diff?cvsroot=gcc&r1=NONE&r2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libgfortran/ChangeLog.diff?cvsroot=gcc&r1=1.154&r2=1.155
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libgfortran/io/transfer.c.diff?cvsroot=gcc&r1=1.30&r2=1.31



-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19595


[Bug libfortran/19595] eor does not work

2005-01-26 Thread pinskia at gcc dot gnu dot org

--- Additional Comments From pinskia at gcc dot gnu dot org  2005-01-26 
21:48 ---
Patch here: .

-- 
   What|Removed |Added

 Status|UNCONFIRMED |NEW
 Ever Confirmed||1
   Keywords||patch
   Last reconfirmed|-00-00 00:00:00 |2005-01-26 21:48:45
   date||


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19595


[Bug libfortran/19595] eor does not work

2005-01-26 Thread Thomas dot Koenig at online dot de

--- Additional Comments From Thomas dot Koenig at online dot de  2005-01-26 
21:43 ---
There are two parts to this bug.  The other is that eor is
that end-of-line processing is broken.  Here's a test case
with the patch from comment #2 applied:

$ cat eor_2.f90
program main
  character*4 c
  open(12)
  write(12,'(A)') '123','456'
  rewind(12)
  read(12,'(A4)',advance='NO',eor=100) c
  call abort
100 continue
end program main
$ gfortran eor_2.f90
$ ./a.out
Aborted


-- 
   What|Removed |Added

  BugsThisDependsOn||19568
   Keywords|diagnostic  |wrong-code
Summary|eor and advance="yes" should|eor does not work
   |not mix |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19595