Fix libbacktrace build on hppa-hpux.
2020-02-29 John David Anglin <danglin@gcc.gnu.org> Backport from mainline 2019-09-26 Ian Lance Taylor <iant@golang.org> PR libbacktrace/91908 * pecoff.c (backtrace_initialize): Explicitly cast unchecked __sync_bool_compare_and_swap to void. * xcoff.c (backtrace_initialize): Likewise.
This commit is contained in:
parent
c3fed15104
commit
fa8a705d1f
|
@ -1,3 +1,13 @@
|
|||
2020-02-29 John David Anglin <danglin@gcc.gnu.org>
|
||||
|
||||
Backport from mainline
|
||||
2019-09-26 Ian Lance Taylor <iant@golang.org>
|
||||
|
||||
PR libbacktrace/91908
|
||||
* pecoff.c (backtrace_initialize): Explicitly cast unchecked
|
||||
__sync_bool_compare_and_swap to void.
|
||||
* xcoff.c (backtrace_initialize): Likewise.
|
||||
|
||||
2019-08-12 Release Manager
|
||||
|
||||
* GCC 9.2.0 released.
|
||||
|
|
|
@ -922,7 +922,8 @@ backtrace_initialize (struct backtrace_state *state,
|
|||
if (found_sym)
|
||||
backtrace_atomic_store_pointer (&state->syminfo_fn, coff_syminfo);
|
||||
else
|
||||
__sync_bool_compare_and_swap (&state->syminfo_fn, NULL, coff_nosyms);
|
||||
(void) __sync_bool_compare_and_swap (&state->syminfo_fn, NULL,
|
||||
coff_nosyms);
|
||||
}
|
||||
|
||||
if (!state->threaded)
|
||||
|
|
|
@ -1592,7 +1592,8 @@ backtrace_initialize (struct backtrace_state *state,
|
|||
if (found_sym)
|
||||
backtrace_atomic_store_pointer (&state->syminfo_fn, xcoff_syminfo);
|
||||
else
|
||||
__sync_bool_compare_and_swap (&state->syminfo_fn, NULL, xcoff_nosyms);
|
||||
(void) __sync_bool_compare_and_swap (&state->syminfo_fn, NULL,
|
||||
xcoff_nosyms);
|
||||
}
|
||||
|
||||
if (!state->threaded)
|
||||
|
|
Loading…
Reference in New Issue