aboutsummaryrefslogtreecommitdiff
path: root/libgfortran/io/unix.c
diff options
context:
space:
mode:
authorFrancois-Xavier Coudert <coudert@clipper.ens.fr>2007-01-18 13:54:11 +0100
committerTobias Burnus <burnus@gcc.gnu.org>2007-01-18 13:54:11 +0100
commiteedeea04da0bbdf7e975a31c9c55f3929657b909 (patch)
tree35528f51b61de752d5ace70f20f9840ecaf371df /libgfortran/io/unix.c
parent9521dd6bd14f4915eecc79f886b805d3e1eb1ff7 (diff)
downloadgcc-eedeea04da0bbdf7e975a31c9c55f3929657b909.zip
gcc-eedeea04da0bbdf7e975a31c9c55f3929657b909.tar.gz
gcc-eedeea04da0bbdf7e975a31c9c55f3929657b909.tar.bz2
re PR libfortran/29649 (Force core dump on runtime library errors)
2007-01-18 Francois-Xavier Coudert <coudert@clipper.ens.fr> Tobias Burnus <burnus@net-b.de> PR libfortran/29649 * gfortran.h (gfc_option_t): Add flag_dump_core. * lang.opt: Add -fdump-core option. * invoke.texi: Document the new options. * trans-decl.c (gfc_build_builtin_function_decls): Add new options to the call to set_std. * options.c (gfc_init_options, gfc_handle_option): Set the new options. 2007-01-18 Francois-Xavier Coudert <coudert@clipper.ens.fr> Tobias Burnus <burnus@net-b.de> PR libfortran/29649 * runtime/environ.c (variable_table): New GFORTRAN_ERROR_DUMPCORE environment variable. * runtime/compile_options.c (set_std): Add new argument. * runtime/error.c (sys_exit): Move from io/unix.c. Add coredump functionality. * libgfortran.h (options_t): New dump_core and backtrace members. (sys_exit): Move prototype. * io/unix.c (sys_exit): Move to runtime/error.c. * configure.ac: Add check for getrlimit. * configure: Regenerate. Co-Authored-By: Tobias Burnus <burnus@net-b.de> From-SVN: r120897
Diffstat (limited to 'libgfortran/io/unix.c')
-rw-r--r--libgfortran/io/unix.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/libgfortran/io/unix.c b/libgfortran/io/unix.c
index aa1dd1f..08f32878 100644
--- a/libgfortran/io/unix.c
+++ b/libgfortran/io/unix.c
@@ -363,15 +363,6 @@ get_oserror (void)
}
-/* sys_exit()-- Terminate the program with an exit code */
-
-void
-sys_exit (int code)
-{
- exit (code);
-}
-
-
/*********************************************************************
File descriptor stream functions
*********************************************************************/