diff options
author | Francois-Xavier Coudert <fxcoudert@gcc.gnu.org> | 2007-08-11 21:52:22 +0000 |
---|---|---|
committer | François-Xavier Coudert <fxcoudert@gcc.gnu.org> | 2007-08-11 21:52:22 +0000 |
commit | 2b840e50679f5b3208241746984cd2f195785f02 (patch) | |
tree | 60e7b5dcde1b34e0269164273f272c579b14a633 /gcc | |
parent | c9ff1de3ae81dc074cac1fcf12292d38f1224b33 (diff) | |
download | gcc-2b840e50679f5b3208241746984cd2f195785f02.zip gcc-2b840e50679f5b3208241746984cd2f195785f02.tar.gz gcc-2b840e50679f5b3208241746984cd2f195785f02.tar.bz2 |
re PR fortran/31189 (Support backtracing for non-library errors)
PR fortran/31189
* runtime/backtrace.c (show_backtrace): Skip _gfortrani_handler
when displaying backtrace.
* runtime/compile_options.c: Include <signal.h>.
(handler): New function.
(set_options): Set signal handlers for backtrace.
* libgfortran.h (handler): Add prototype.
* invoke.texi (-fbacktrace): Document the new behaviour.
Co-Authored-By: Tobias Burnus <burnus@gcc.gnu.org>
From-SVN: r127364
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/fortran/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/fortran/invoke.texi | 4 |
2 files changed, 8 insertions, 1 deletions
diff --git a/gcc/fortran/ChangeLog b/gcc/fortran/ChangeLog index 758ed43..cbd28a5 100644 --- a/gcc/fortran/ChangeLog +++ b/gcc/fortran/ChangeLog @@ -1,5 +1,10 @@ 2007-08-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org> + PR fortran/31189 + * invoke.texi (-fbacktrace): Document the new behaviour. + +2007-08-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org> + PR fortran/32937 * trans-array.c (gfc_conv_expr_descriptor): Use gfc_conv_const_charlen to generate backend_decl of right type. diff --git a/gcc/fortran/invoke.texi b/gcc/fortran/invoke.texi index af90b58..b1d790a 100644 --- a/gcc/fortran/invoke.texi +++ b/gcc/fortran/invoke.texi @@ -544,7 +544,9 @@ zero), @samp{overflow} (overflow in a floating point operation), @opindex @code{fbacktrace} @cindex backtrace @cindex trace -Specify that, when a runtime error is encountered, the Fortran runtime +Specify that, when a runtime error is encountered or a deadly signal is +emitted (segmentation fault, illegal instruction, bus error or +floating-point exception), the Fortran runtime library should output a backtrace of the error. This option only has influence for compilation of the Fortran main program. |