public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/15328] New:
@ 2004-05-06 18:22 gcc-bugzilla at gcc dot gnu dot org
  2004-05-06 18:34 ` [Bug libfortran/15328] [gfortran] write is not flushed pinskia at gcc dot gnu dot org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: gcc-bugzilla at gcc dot gnu dot org @ 2004-05-06 18:22 UTC (permalink / raw)
  To: gcc-bugs


Consider the following code:

   program b
      write(*,'(A)', advance='no') 'Prompt: '
      read(*,*) i
   end program b

When compiled and executed, it should write "Prompt: " to stdout and
wait for an integer input.  For example, with NAG's compiler I get

   troutmask:sgk[204] f95 -o b b.f90
   troutmask:sgk[205] b
   Prompt: 8

   troutmask:sgk[206] 

With gfortran, I get the prompt after I input the integer value.

   troutmask:sgk[206] gfortran -static -o b b.f90
   troutmask:sgk[207] b
   8
   Prompt: troutmask:sgk[208] 

Clear, the executables from gfortran is waiting for a carriage return
before flushing its buffer to stdout.

Environment:
System: FreeBSD troutmask.apl.washington.edu 5.2-CURRENT FreeBSD 5.2-CURRENT #0: Thu Apr 22 14:44:25 PDT 2004 kargl@troutmask.apl.washington.edu:/usr/obj/usr/src/sys/TROUTMASK i386


	
host: i386-unknown-freebsd5.2
build: i386-unknown-freebsd5.2
target: i386-unknown-freebsd5.2
configured with: ../gcc/configure --enable-languages=c,f95 --prefix=/home/sgk --with-gmp=/usr/local --disable-libmudflap

How-To-Repeat:
	See above.

-- 
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: critical
          Priority: P2
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: kargl at troutmask dot apl dot washington dot edu
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: i386-unknown-freebsd5.2
  GCC host triplet: i386-unknown-freebsd5.2
GCC target triplet: i386-unknown-freebsd5.2


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


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug libfortran/15328] [gfortran] write is not flushed
  2004-05-06 18:22 [Bug fortran/15328] New: gcc-bugzilla at gcc dot gnu dot org
@ 2004-05-06 18:34 ` pinskia at gcc dot gnu dot org
  2004-05-15 14:45 ` jblomqvi at cc dot hut dot fi
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-05-06 18:34 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-05-06 18:34 -------
Confirmed.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|critical                    |normal
             Status|UNCONFIRMED                 |NEW
          Component|fortran                     |libfortran
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2004-05-06 18:34:31
               date|                            |
            Summary|                            |[gfortran] write is not
                   |                            |flushed
   Target Milestone|---                         |tree-ssa
            Version|unknown                     |tree-ssa


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


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug libfortran/15328] [gfortran] write is not flushed
  2004-05-06 18:22 [Bug fortran/15328] New: gcc-bugzilla at gcc dot gnu dot org
  2004-05-06 18:34 ` [Bug libfortran/15328] [gfortran] write is not flushed pinskia at gcc dot gnu dot org
@ 2004-05-15 14:45 ` jblomqvi at cc dot hut dot fi
  2004-05-15 21:35 ` jblomqvi at cc dot hut dot fi
  2004-05-17  1:04 ` pinskia at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: jblomqvi at cc dot hut dot fi @ 2004-05-15 14:45 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From jblomqvi at cc dot hut dot fi  2004-05-14 19:36 -------
Proposed patch here:

<a
href="http://gcc.gnu.org/ml/gcc-patches/2004-05/msg00883.html">http://gcc.gnu.org/ml/gcc-patches/2004-05/msg00883.html</a>

-- 


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


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug libfortran/15328] [gfortran] write is not flushed
  2004-05-06 18:22 [Bug fortran/15328] New: gcc-bugzilla at gcc dot gnu dot org
  2004-05-06 18:34 ` [Bug libfortran/15328] [gfortran] write is not flushed pinskia at gcc dot gnu dot org
  2004-05-15 14:45 ` jblomqvi at cc dot hut dot fi
@ 2004-05-15 21:35 ` jblomqvi at cc dot hut dot fi
  2004-05-17  1:04 ` pinskia at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: jblomqvi at cc dot hut dot fi @ 2004-05-15 21:35 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From jblomqvi at cc dot hut dot fi  2004-05-15 09:03 -------
Improved patch for unix.c here:

http://gcc.gnu.org/ml/gcc-patches/2004-05/msg00907.html

-- 


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


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug libfortran/15328] [gfortran] write is not flushed
  2004-05-06 18:22 [Bug fortran/15328] New: gcc-bugzilla at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2004-05-15 21:35 ` jblomqvi at cc dot hut dot fi
@ 2004-05-17  1:04 ` pinskia at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-05-17  1:04 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-05-16 13:32 -------
Fixed.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


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


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2004-05-16 13:32 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-05-06 18:22 [Bug fortran/15328] New: gcc-bugzilla at gcc dot gnu dot org
2004-05-06 18:34 ` [Bug libfortran/15328] [gfortran] write is not flushed pinskia at gcc dot gnu dot org
2004-05-15 14:45 ` jblomqvi at cc dot hut dot fi
2004-05-15 21:35 ` jblomqvi at cc dot hut dot fi
2004-05-17  1:04 ` 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).