------- Additional Comments From fxcoudert at gcc dot gnu dot org 2005-05-25 18:37 ------- In my view, interoperation implies that every part of code leaves the system in a clean state (I/O streams flushed, FPE flags in correct state) when execution switches to another part of code. That is what the patch I mentionned is doing: making sure gfortran doesn't stdout when some other code might still need it.
Now, it might be necessary to have special workarounds for the most common problems (such as this one with stdout) that we can fix, even if we shouldn't have to take care of. As always, the problem is: adding lots of ad hoc tricks with "negligible" performance loss can result in big performance losses for nothing in the most usual cases. Anyway, I'll work on something. If you have some spare time (dreams, dreams), a bit of performance-profiling could be useful. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20179