diff options
author | Francois-Xavier Coudert <fxcoudert@gcc.gnu.org> | 2015-08-23 21:50:30 +0000 |
---|---|---|
committer | François-Xavier Coudert <fxcoudert@gcc.gnu.org> | 2015-08-23 21:50:30 +0000 |
commit | ad4f95e395b752371643327c1fdf71fac70de526 (patch) | |
tree | 2d9bb42bb8fba1bb8290c5fdeb49a6955a68c642 /libgfortran/configure | |
parent | 1487cca00ca6f4e0fe60d72761737da162e96840 (diff) | |
download | gcc-ad4f95e395b752371643327c1fdf71fac70de526.tar.gz |
re PR libfortran/54572 (Use libbacktrace library)
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.
From-SVN: r227106
Diffstat (limited to 'libgfortran/configure')
-rwxr-xr-x | libgfortran/configure | 62 |
1 files changed, 2 insertions, 60 deletions
diff --git a/libgfortran/configure b/libgfortran/configure index 07542e1387d..d7dad11a161 100755 --- a/libgfortran/configure +++ b/libgfortran/configure @@ -776,7 +776,6 @@ with_gnu_ld enable_libtool_lock enable_largefile enable_libquadmath_support -with_system_libunwind ' ac_precious_vars='build_alias host_alias @@ -1435,7 +1434,6 @@ Optional Packages: --with-pic try to use only PIC/non-PIC objects [default=use both] --with-gnu-ld assume the C compiler uses GNU ld [default=no] - --with-system-libunwind use installed libunwind Some influential environment variables: CC C compiler command @@ -2572,11 +2570,7 @@ as_fn_append ac_func_list " alarm" as_fn_append ac_func_list " access" as_fn_append ac_func_list " fork" as_fn_append ac_func_list " execl" -as_fn_append ac_func_list " wait" as_fn_append ac_func_list " setmode" -as_fn_append ac_func_list " execve" -as_fn_append ac_func_list " pipe" -as_fn_append ac_func_list " dup2" as_fn_append ac_func_list " close" as_fn_append ac_func_list " fcntl" as_fn_append ac_func_list " strcasestr" @@ -2607,7 +2601,6 @@ as_fn_append ac_func_list " __secure_getenv" as_fn_append ac_func_list " mkostemp" as_fn_append ac_func_list " strnlen" as_fn_append ac_func_list " strndup" -as_fn_append ac_func_list " strtok_r" as_fn_append ac_func_list " newlocale" as_fn_append ac_func_list " freelocale" as_fn_append ac_func_list " uselocale" @@ -12376,7 +12369,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF -#line 12379 "configure" +#line 12372 "configure" #include "confdefs.h" #if HAVE_DLFCN_H @@ -12482,7 +12475,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF -#line 12485 "configure" +#line 12478 "configure" #include "confdefs.h" #if HAVE_DLFCN_H @@ -16514,9 +16507,6 @@ $as_echo "#define HAVE_STRNLEN 1" >>confdefs.h $as_echo "#define HAVE_STRNDUP 1" >>confdefs.h -$as_echo "#define HAVE_STRTOK_R 1" >>confdefs.h - - # At some point, we should differentiate between architectures # like x86, which have long double versions, and alpha/powerpc/etc., # which don't. For the time being, punt. @@ -16653,16 +16643,6 @@ done - - - - - - - - - - fi # Check strerror_r, cannot be above as versions with two and three arguments exist @@ -26584,44 +26564,6 @@ $as_echo "#define HAVE_CRLF 1" >>confdefs.h fi -# Check whether we have _Unwind_GetIPInfo for backtrace - - -# Check whether --with-system-libunwind was given. -if test "${with_system_libunwind+set}" = set; then : - withval=$with_system_libunwind; -fi - - # If system-libunwind was not specifically set, pick a default setting. - if test x$with_system_libunwind = x; then - case ${target} in - ia64-*-hpux*) with_system_libunwind=yes ;; - *) with_system_libunwind=no ;; - esac - fi - # Based on system-libunwind and target, do we have ipinfo? - if test x$with_system_libunwind = xyes; then - case ${target} in - ia64-*-*) have_unwind_getipinfo=no ;; - *) have_unwind_getipinfo=yes ;; - esac - else - # Darwin before version 9 does not have _Unwind_GetIPInfo. - - case ${target} in - *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;; - *) have_unwind_getipinfo=yes ;; - esac - - fi - - if test x$have_unwind_getipinfo = xyes; then - -$as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h - - fi - - cat >confcache <<\_ACEOF # This file is a shell script that caches the results of configure # tests run on this system so they can be shared between configure |