mirror of git://gcc.gnu.org/git/gcc.git
PR 68115/libfortran
PR 68115/libfortran * configure.ac: Set libbacktrace_cv_sys_sync to no on hppa*-*-hpux*. * configure: Regenerate. * elf.c (backtrace_initialize): Cast __sync_bool_compare_and_swap call to void. From-SVN: r231485
This commit is contained in:
parent
512e4ace54
commit
2f401a8f18
|
|
@ -1,3 +1,11 @@
|
||||||
|
2015-12-09 John David Anglin <danglin@gcc.gnu.org>
|
||||||
|
|
||||||
|
PR 68115/libfortran
|
||||||
|
* configure.ac: Set libbacktrace_cv_sys_sync to no on hppa*-*-hpux*.
|
||||||
|
* configure: Regenerate.
|
||||||
|
* elf.c (backtrace_initialize): Cast __sync_bool_compare_and_swap call
|
||||||
|
to void.
|
||||||
|
|
||||||
2015-09-17 Ian Lance Taylor <iant@google.com>
|
2015-09-17 Ian Lance Taylor <iant@google.com>
|
||||||
|
|
||||||
* posix.c (backtrace_open): Cast second argument of open() to int.
|
* posix.c (backtrace_open): Cast second argument of open() to int.
|
||||||
|
|
|
||||||
|
|
@ -9103,7 +9103,7 @@ _LT_EOF
|
||||||
if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
|
if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
|
||||||
export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
|
export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
|
||||||
else
|
else
|
||||||
export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
|
export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
|
||||||
fi
|
fi
|
||||||
aix_use_runtimelinking=no
|
aix_use_runtimelinking=no
|
||||||
|
|
||||||
|
|
@ -11726,7 +11726,10 @@ if test "${libbacktrace_cv_sys_sync+set}" = set; then :
|
||||||
$as_echo_n "(cached) " >&6
|
$as_echo_n "(cached) " >&6
|
||||||
else
|
else
|
||||||
if test -n "${with_target_subdir}"; then
|
if test -n "${with_target_subdir}"; then
|
||||||
libbacktrace_cv_sys_sync=yes
|
case "${host}" in
|
||||||
|
hppa*-*-hpux*) libbacktrace_cv_sys_sync=no ;;
|
||||||
|
*) libbacktrace_cv_sys_sync=yes ;;
|
||||||
|
esac
|
||||||
else
|
else
|
||||||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
||||||
/* end confdefs.h. */
|
/* end confdefs.h. */
|
||||||
|
|
|
||||||
|
|
@ -172,7 +172,10 @@ AC_SUBST(PIC_FLAG)
|
||||||
AC_CACHE_CHECK([__sync extensions],
|
AC_CACHE_CHECK([__sync extensions],
|
||||||
[libbacktrace_cv_sys_sync],
|
[libbacktrace_cv_sys_sync],
|
||||||
[if test -n "${with_target_subdir}"; then
|
[if test -n "${with_target_subdir}"; then
|
||||||
libbacktrace_cv_sys_sync=yes
|
case "${host}" in
|
||||||
|
hppa*-*-hpux*) libbacktrace_cv_sys_sync=no ;;
|
||||||
|
*) libbacktrace_cv_sys_sync=yes ;;
|
||||||
|
esac
|
||||||
else
|
else
|
||||||
AC_LINK_IFELSE(
|
AC_LINK_IFELSE(
|
||||||
[AC_LANG_PROGRAM([int i;],
|
[AC_LANG_PROGRAM([int i;],
|
||||||
|
|
|
||||||
|
|
@ -955,7 +955,8 @@ backtrace_initialize (struct backtrace_state *state, int descriptor,
|
||||||
if (found_sym)
|
if (found_sym)
|
||||||
backtrace_atomic_store_pointer (&state->syminfo_fn, elf_syminfo);
|
backtrace_atomic_store_pointer (&state->syminfo_fn, elf_syminfo);
|
||||||
else
|
else
|
||||||
__sync_bool_compare_and_swap (&state->syminfo_fn, NULL, elf_nosyms);
|
(void) __sync_bool_compare_and_swap (&state->syminfo_fn, NULL,
|
||||||
|
elf_nosyms);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!state->threaded)
|
if (!state->threaded)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue