aboutsummaryrefslogtreecommitdiff
path: root/libbacktrace
diff options
context:
space:
mode:
authordanglin <danglin@138bc75d-0d04-0410-961f-82ee72b054a4>2015-12-10 01:08:13 +0000
committerdanglin <danglin@138bc75d-0d04-0410-961f-82ee72b054a4>2015-12-10 01:08:13 +0000
commitab861c807e04d7b0fb50c7f1a06ed563c9fff6bc (patch)
treee90635f949eb2668185ec1ca8a99d76fb8594369 /libbacktrace
parent278e7895c8d7049fdfbd2b8174baf54a4c720ee6 (diff)
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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@231485 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libbacktrace')
-rw-r--r--libbacktrace/ChangeLog8
-rwxr-xr-xlibbacktrace/configure7
-rw-r--r--libbacktrace/configure.ac5
-rw-r--r--libbacktrace/elf.c3
4 files changed, 19 insertions, 4 deletions
diff --git a/libbacktrace/ChangeLog b/libbacktrace/ChangeLog
index 3d8d71cfda8..23f3da1bbdc 100644
--- a/libbacktrace/ChangeLog
+++ b/libbacktrace/ChangeLog
@@ -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>
* posix.c (backtrace_open): Cast second argument of open() to int.
diff --git a/libbacktrace/configure b/libbacktrace/configure
index f8adc834246..8d0146ac378 100755
--- a/libbacktrace/configure
+++ b/libbacktrace/configure
@@ -9103,7 +9103,7 @@ _LT_EOF
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'
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
aix_use_runtimelinking=no
@@ -11726,7 +11726,10 @@ if test "${libbacktrace_cv_sys_sync+set}" = set; then :
$as_echo_n "(cached) " >&6
else
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
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
diff --git a/libbacktrace/configure.ac b/libbacktrace/configure.ac
index 33866e9093f..db4a291dea9 100644
--- a/libbacktrace/configure.ac
+++ b/libbacktrace/configure.ac
@@ -172,7 +172,10 @@ AC_SUBST(PIC_FLAG)
AC_CACHE_CHECK([__sync extensions],
[libbacktrace_cv_sys_sync],
[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
AC_LINK_IFELSE(
[AC_LANG_PROGRAM([int i;],
diff --git a/libbacktrace/elf.c b/libbacktrace/elf.c
index 3f14b11a43c..71ad340c005 100644
--- a/libbacktrace/elf.c
+++ b/libbacktrace/elf.c
@@ -955,7 +955,8 @@ backtrace_initialize (struct backtrace_state *state, int descriptor,
if (found_sym)
backtrace_atomic_store_pointer (&state->syminfo_fn, elf_syminfo);
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)