As found by Harald Anlauf, http://gcc.gnu.org/ml/fortran/2007-10/msg00239.html , the GFORTRAN_UNBUFFERED_<number> environment variables are not effective, only GFORTRAN_UNBUFFERED_ALL affects the buffering.
Francois-Xavier replied: Currently, GFORTRAN_UNBUFFERED_ALL is implemented but GFORTRAN_UNBUFFERED_n (where n is not ALL) isn't. This should either be implemented, or the documentation for that feature should be removed (as well as the unused code providing partial support for it). I think the second choice is simplest, because 1. people who want unbuffered output can use GFORTRAN_UNBUFFERED_ALL, and 2. if they really need partial unbuffered output, they can use FLUSH. -- Summary: Environment variable GFORTRAN_UNBUFFERED_<number> not working Product: gcc Version: 4.3.0 Status: UNCONFIRMED Keywords: documentation Severity: normal Priority: P3 Component: fortran AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: burnus at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33795