re PR libbacktrace/91908 (New libbacktrace tests fail to build)
authorIan Lance Taylor <iant@golang.org>
Thu, 26 Sep 2019 22:19:47 +0000 (22:19 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Thu, 26 Sep 2019 22:19:47 +0000 (22:19 +0000)
PR libbacktrace/91908
* pecoff.c (backtrace_initialize): Explicitly cast unchecked
__sync_bool_compare_and_swap to void.
* xcoff.c (backtrace_initialize): Likewise.

From-SVN: r276168

libbacktrace/ChangeLog
libbacktrace/pecoff.c
libbacktrace/xcoff.c

index 60ae5d2788d27e3b86e158d10f37776fd017195f..c88b1238bb6614d4d65c773c403e66c95982f9e3 100644 (file)
@@ -1,3 +1,10 @@
+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-09-03  Ulrich Weigand  <uweigand@de.ibm.com>
 
        * configure.ac: Remove references to spu.
index da1982fd3ca7c1624d93d80ffd919822b2de4223..fcf9508d488ce59a44ae7e3e700265fa90cd6d1f 100644 (file)
@@ -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)
index d50b5bc517e6ec836e2f8d84de5ff5161d1d5d5d..bc60962fe041086fcab150164ce85ee2f4daf106 100644 (file)
@@ -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)