[Bug libfortran/54572] Use libbacktrace library

fxcoudert at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sun Aug 23 21:51:00 GMT 2015


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

--- Comment #17 from Francois-Xavier Coudert <fxcoudert at gcc dot gnu.org> ---
Author: fxcoudert
Date: Sun Aug 23 21:50:30 2015
New Revision: 227106

URL: https://gcc.gnu.org/viewcvs?rev=227106&root=gcc&view=rev
Log:
        PR libfortran/54572

        * Makefile.def: Make libgfortran depend on libbacktrace.
        * Makefile.in: Regenerate.

        * config-lang.in: Add libbacktrace to target_libs.

        * Makefile.am (libgfortran_la_LDFLAGS): Link in libbacktrace.
        (AM_CPPFLAGS): Add libbacktrace directories to include paths.
        * Makefile.in: Regenerate.
        * aclocal.m4: Regenerate.
        * config.h.in: Regenerate.
        * configure: Regenerate.
        * configure.ac: Remove checks for strtok_r, wait, execve, pipe,
        and dup2. Remove call to GCC_CHECK_UNWIND_GETIPINFO.
        * libgfortran.h (full_exe_path, find_addr2line, backtrace): Remove
        prototypes.
        (show_backtrace): Add prototype.
        * runtime/backtrace.c: Rework file entirely.
        * runtime/compile_options.c (backtrace_handler): Rename backtrace
        to show_backtrace.
        (maybe_find_addr2line): Remove function.
        (set_options): Remove call to maybe_find_addr2line.
        * runtime/error.c (sys_abort): Rename backtrace to show_backtrace.
        * runtime/main.c (store_exe_path): Empty function body.
        (full_exe_path, gfstrtok_r, find_addr2line): Remove functions.
        (cleanup): Don't free removed variables.
        * runtime/minimal.c (full_exe_path): Remove function.
        (set_args): Don't set exe_path.

        * gfortran.dg/backtrace_1.f90: New test.

Added:
    trunk/gcc/testsuite/gfortran.dg/backtrace_1.f90
Modified:
    trunk/ChangeLog
    trunk/Makefile.def
    trunk/Makefile.in
    trunk/gcc/fortran/ChangeLog
    trunk/gcc/fortran/config-lang.in
    trunk/gcc/testsuite/ChangeLog
    trunk/libgfortran/ChangeLog
    trunk/libgfortran/Makefile.am
    trunk/libgfortran/Makefile.in
    trunk/libgfortran/aclocal.m4
    trunk/libgfortran/config.h.in
    trunk/libgfortran/configure
    trunk/libgfortran/configure.ac
    trunk/libgfortran/libgfortran.h
    trunk/libgfortran/runtime/backtrace.c
    trunk/libgfortran/runtime/compile_options.c
    trunk/libgfortran/runtime/error.c
    trunk/libgfortran/runtime/main.c
    trunk/libgfortran/runtime/minimal.c



More information about the Gcc-bugs mailing list