------- Comment #1 from burnus at gcc dot gnu dot org  2010-04-22 13:19 -------
Thus:

a) Create a function named, e.g., _gfortran_shutdown/_gfortran_finalize, which
calls
   flush_all_units ();
   close_units ();

b) Call it from:
   _gfortran_abort
   _gfortran_stop_numeric;
   _gfortran_stop_string;
   _gfortran_error_stop_string
   _gfortran_error_stop_numeric (not yet existing)
and maybe from the run-time error calls such as
   _gfortran_runtime_error
   _gfortran_runtime_error_at

c) Change trans-decl.c's create_main_function to call it

d) Update gfortran.texi

e) Add a call to the gfortran CAF library for ERROR STOP


-- 


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

Reply via email to