public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/43849]  New: Add _gfortran_finalize function to close down the library
@ 2010-04-22 12:49 burnus at gcc dot gnu dot org
  2010-04-22 13:19 ` [Bug fortran/43849] " burnus at gcc dot gnu dot org
  2010-04-22 13:30 ` burnus at gcc dot gnu dot org
  0 siblings, 2 replies; 9+ messages in thread
From: burnus at gcc dot gnu dot org @ 2010-04-22 12:49 UTC (permalink / raw)
  To: gcc-bugs

Currently, gfortran only has start up routines, cf.
http://gcc.gnu.org/onlinedocs/gfortran/Non_002dFortran-Main-Program.html

I think it makes sense to also add shutdown routines.

Currently, _gfortran_abort calls:
  close_units ();
Additionally, one should call:
  flush_all_units ();

For some reasons _gfortran_exit_i(4,8) does not. And, I think it would make
sense to call the unit flushing (via the shutdown routine) also for "STOP" and
when leaving the main program. And non-Fortran main programs should do the same
(cf. link above).

The (externally visible) shutdown routine shall return and leave the exiting of
the program to the caller.


-- 
           Summary: Add _gfortran_finalize function to close down the
                    library
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          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=43849


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

end of thread, other threads:[~2015-09-03 20:35 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-43849-4@http.gcc.gnu.org/bugzilla/>
2010-11-03 16:31 ` [Bug fortran/43849] Add _gfortran_finalize function to close down the library jb at gcc dot gnu.org
2013-12-21 20:36 ` dominiq at lps dot ens.fr
2015-08-24 20:05 ` [Bug libfortran/43849] " fxcoudert at gcc dot gnu.org
2015-09-03 16:05 ` dominiq at lps dot ens.fr
2015-09-03 20:28 ` jb at gcc dot gnu.org
2015-09-03 20:31 ` dominiq at lps dot ens.fr
2015-09-03 20:35 ` fxcoudert at gcc dot gnu.org
2010-04-22 12:49 [Bug fortran/43849] New: " burnus at gcc dot gnu dot org
2010-04-22 13:19 ` [Bug fortran/43849] " burnus at gcc dot gnu dot org
2010-04-22 13:30 ` burnus 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).