https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67414

--- Comment #3 from Janne Blomqvist <jb at gcc dot gnu.org> ---
Author: jb
Date: Wed Sep  2 14:51:40 2015
New Revision: 227404

URL: https://gcc.gnu.org/viewcvs?rev=227404&root=gcc&view=rev
Log:
PR 67414 Better diagnostics on backtrace failure, gf_strerror bugfix

2015-09-02  Janne Blomqvist  <j...@gcc.gnu.org>

        PR libfortran/67414
        * io/write.c (gfc_itoa): Move to runtime/string.c.
        * libgfortran.h (show_backtrace): Make arg bool.
        (gfc_itoa): New prototype.
        * runtime/backtrace.c (struct mystate): Change type of try_simple
        field, add in_signal_handler field.
        (error_callback): Print out error number, or if not in a signal
        handler, the error message.
        (show_backtrace): Change type of arg, change initialization of
        struct mystate.
        (backtrace): Call show_backtrace with correct arg type.
        * runtime/compile_options.c (backtrace_handler): Call with correct
        arg type.
        * runtime/error.c (sys_abort): Likewise.
        (gf_strerror): Handle newlocale() failure.
        * runtime/string.c (gfc_itoa): Function moved here from
        io/write.c.

Modified:
    trunk/libgfortran/ChangeLog
    trunk/libgfortran/io/write.c
    trunk/libgfortran/libgfortran.h
    trunk/libgfortran/runtime/backtrace.c
    trunk/libgfortran/runtime/compile_options.c
    trunk/libgfortran/runtime/error.c
    trunk/libgfortran/runtime/string.c

Reply via email to