diff options
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/fortran/ChangeLog | 15 | ||||
-rw-r--r-- | gcc/fortran/gfortran.h | 1 | ||||
-rw-r--r-- | gcc/fortran/gfortran.texi | 24 | ||||
-rw-r--r-- | gcc/fortran/intrinsic.texi | 5 | ||||
-rw-r--r-- | gcc/fortran/invoke.texi | 26 | ||||
-rw-r--r-- | gcc/fortran/lang.opt | 4 | ||||
-rw-r--r-- | gcc/fortran/options.c | 7 | ||||
-rw-r--r-- | gcc/fortran/trans-decl.c | 5 |
8 files changed, 38 insertions, 49 deletions
diff --git a/gcc/fortran/ChangeLog b/gcc/fortran/ChangeLog index 4be4e5d..afc5533 100644 --- a/gcc/fortran/ChangeLog +++ b/gcc/fortran/ChangeLog @@ -1,5 +1,20 @@ 2011-05-14 Janne Blomqvist <jb@gcc.gnu.org> + PR libfortran/48915 + * gfortran.h (gfc_option_t): Remove flag_dump_core. + * gfortran.texi (GFORTRAN_ERROR_DUMPCORE): Remove section. + (GFORTRAN_ERROR_BACKTRACE): Document that it's enabled by default. + * intrinsic.texi (ABORT): Remove explanation of -fdump-core. + * invoke.texi: Remove -fdump-core, document that -fbacktrace is + enabled by default. + * lang.opt: Remove -fdump-core. + * options.c (gfc_init_options): Make backtrace default to enabled, + remove dump_core. + (gfc_handle_option): Remove OPT_fdump-core. + * trans-decl.c: Pass a 0 to preserve ABI. + +2011-05-14 Janne Blomqvist <jb@gcc.gnu.org> + * gfortran.texi: Remove GFORTRAN_USE_STDERR documentation. 2011-05-13 Tobias Burnus <burnus@net-b.de> diff --git a/gcc/fortran/gfortran.h b/gcc/fortran/gfortran.h index 92adf72..3b4967d 100644 --- a/gcc/fortran/gfortran.h +++ b/gcc/fortran/gfortran.h @@ -2212,7 +2212,6 @@ typedef struct int flag_backslash; int flag_backtrace; int flag_allow_leading_underscore; - int flag_dump_core; int flag_external_blas; int blas_matmul_limit; int flag_cray_pointer; diff --git a/gcc/fortran/gfortran.texi b/gcc/fortran/gfortran.texi index c810fe2..518c9987 100644 --- a/gcc/fortran/gfortran.texi +++ b/gcc/fortran/gfortran.texi @@ -587,7 +587,6 @@ Malformed environment variables are silently ignored. * GFORTRAN_DEFAULT_RECL:: Default record length for new files * GFORTRAN_LIST_SEPARATOR:: Separator for list output * GFORTRAN_CONVERT_UNIT:: Set endianness for unformatted I/O -* GFORTRAN_ERROR_DUMPCORE:: Dump core on run-time errors * GFORTRAN_ERROR_BACKTRACE:: Show backtrace on run-time errors @end menu @@ -745,26 +744,15 @@ environment variable will override the CONVERT specifier in the open statement}. This is to give control over data formats to users who do not have the source code of their program available. -@node GFORTRAN_ERROR_DUMPCORE -@section @env{GFORTRAN_ERROR_DUMPCORE}---Dump core on run-time errors - -If the @env{GFORTRAN_ERROR_DUMPCORE} variable is set to -@samp{y}, @samp{Y} or @samp{1} (only the first letter is relevant) -then library run-time errors cause core dumps. To disable the core -dumps, set the variable to @samp{n}, @samp{N}, @samp{0}. Default -is not to core dump unless the @option{-fdump-core} compile option -was used. - @node GFORTRAN_ERROR_BACKTRACE @section @env{GFORTRAN_ERROR_BACKTRACE}---Show backtrace on run-time errors -If the @env{GFORTRAN_ERROR_BACKTRACE} variable is set to -@samp{y}, @samp{Y} or @samp{1} (only the first letter is relevant) -then a backtrace is printed when a run-time error occurs. -To disable the backtracing, set the variable to -@samp{n}, @samp{N}, @samp{0}. Default is not to print a backtrace -unless the @option{-fbacktrace} compile option -was used. +If the @env{GFORTRAN_ERROR_BACKTRACE} variable is set to @samp{y}, +@samp{Y} or @samp{1} (only the first letter is relevant) then a +backtrace is printed when a serious run-time error occurs. To disable +the backtracing, set the variable to @samp{n}, @samp{N}, @samp{0}. +Default is to print a backtrace unless the @option{-fno-backtrace} +compile option was used. @c ===================================================================== @c PART II: LANGUAGE REFERENCE diff --git a/gcc/fortran/intrinsic.texi b/gcc/fortran/intrinsic.texi index ebffb12..804b31f 100644 --- a/gcc/fortran/intrinsic.texi +++ b/gcc/fortran/intrinsic.texi @@ -345,10 +345,7 @@ the applicable standard for each intrinsic procedure is noted. @table @asis @item @emph{Description}: @code{ABORT} causes immediate termination of the program. On operating -systems that support a core dump, @code{ABORT} will produce a core dump even if -the option @option{-fno-dump-core} is in effect, which is suitable for debugging -purposes. -@c TODO: Check if this (with -fno-dump-core) is correct. +systems that support a core dump, @code{ABORT} will produce a core dump. @item @emph{Standard}: GNU extension diff --git a/gcc/fortran/invoke.texi b/gcc/fortran/invoke.texi index 9f02239..f68b18c 100644 --- a/gcc/fortran/invoke.texi +++ b/gcc/fortran/invoke.texi @@ -145,7 +145,7 @@ and warnings}. @item Debugging Options @xref{Debugging Options,,Options for debugging your program or GNU Fortran}. @gccoptlist{-fdump-fortran-original -fdump-fortran-optimized @gol --ffpe-trap=@var{list} -fdump-core -fbacktrace -fdump-parse-tree} +-ffpe-trap=@var{list} -fbacktrace -fdump-parse-tree} @item Directory Options @xref{Directory Options,,Options for directory search}. @@ -935,22 +935,18 @@ Some of the routines in the Fortran runtime library, like @code{ffpe-trap=precision} is used. For this reason, the use of @code{ffpe-trap=precision} is not recommended. -@item -fbacktrace -@opindex @code{fbacktrace} +@item -fno-backtrace +@opindex @code{fno-backtrace} @cindex backtrace @cindex trace -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. - -@item -fdump-core -@cindex core, dump -@opindex @code{fdump-core} -Request that a core-dump file is written to disk when a runtime error -is encountered on systems that support core dumps. This option is -only effective for the compilation of the Fortran main program. +When a serious runtime error is encountered or a deadly signal is +emitted (segmentation fault, illegal instruction, bus error, +floating-point exception, and the other POSIX signals that have the +action @samp{core}), the Fortran runtime library tries to output a +backtrace of the error. @code{-fno-backtrace} disables the backtrace +generation. This option only has influence for compilation of the +Fortran main program. + @end table @xref{Debugging Options,,Options for Debugging Your Program or GCC, diff --git a/gcc/fortran/lang.opt b/gcc/fortran/lang.opt index ce944e3..a056c5c 100644 --- a/gcc/fortran/lang.opt +++ b/gcc/fortran/lang.opt @@ -366,10 +366,6 @@ fdollar-ok Fortran Allow dollar signs in entity names -fdump-core -Fortran -Dump a core file when a runtime error occurs - fdump-fortran-original Fortran Display the code tree after parsing diff --git a/gcc/fortran/options.c b/gcc/fortran/options.c index c67d109..d4778ba 100644 --- a/gcc/fortran/options.c +++ b/gcc/fortran/options.c @@ -134,9 +134,8 @@ gfc_init_options (unsigned int decoded_options_count, gfc_option.flag_automatic = 1; gfc_option.flag_backslash = 0; gfc_option.flag_module_private = 0; - gfc_option.flag_backtrace = 0; + gfc_option.flag_backtrace = 1; gfc_option.flag_allow_leading_underscore = 0; - gfc_option.flag_dump_core = 0; gfc_option.flag_external_blas = 0; gfc_option.blas_matmul_limit = 30; gfc_option.flag_cray_pointer = 0; @@ -697,10 +696,6 @@ gfc_handle_option (size_t scode, const char *arg, int value, gfc_option.rtcheck |= GFC_RTCHECK_ARRAY_TEMPS; break; - case OPT_fdump_core: - gfc_option.flag_dump_core = value; - break; - case OPT_fcray_pointer: gfc_option.flag_cray_pointer = value; break; diff --git a/gcc/fortran/trans-decl.c b/gcc/fortran/trans-decl.c index 77e2a59..f0138b0 100644 --- a/gcc/fortran/trans-decl.c +++ b/gcc/fortran/trans-decl.c @@ -4636,9 +4636,12 @@ create_main_function (tree fndecl) gfc_option.allow_std)); CONSTRUCTOR_APPEND_ELT (v, NULL_TREE, build_int_cst (integer_type_node, pedantic)); + /* TODO: This is the old -fdump-core option, which is unused but + passed due to ABI compatibility; remove when bumping the + library ABI. */ CONSTRUCTOR_APPEND_ELT (v, NULL_TREE, build_int_cst (integer_type_node, - gfc_option.flag_dump_core)); + 0)); CONSTRUCTOR_APPEND_ELT (v, NULL_TREE, build_int_cst (integer_type_node, gfc_option.flag_backtrace)); |