summaryrefslogtreecommitdiff
path: root/pthread_stop_world.c
diff options
context:
space:
mode:
authorIvan Maidanski <ivmai@mail.ru>2022-10-01 22:19:22 +0300
committerIvan Maidanski <ivmai@mail.ru>2022-10-01 22:19:22 +0300
commit03f85c725421388128377d080e0fc1fb8e209b4c (patch)
tree4095796f46742681b3330d1db6bf33e4f45ac524 /pthread_stop_world.c
parentc743a6836cc35565f8ae474c7cda65df8321527a (diff)
downloadbdwgc-03f85c725421388128377d080e0fc1fb8e209b4c.tar.gz
Eliminate 'is_self set but not used' gcc warning in GC_push_all_stacks
(fix of commit 48a01ee1c) * pthread_stop_world.c (GC_push_all_stacks): Define and set is_self local variable only if E2K or IA64.
Diffstat (limited to 'pthread_stop_world.c')
-rw-r--r--pthread_stop_world.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/pthread_stop_world.c b/pthread_stop_world.c
index 01292fac..b8a548b3 100644
--- a/pthread_stop_world.c
+++ b/pthread_stop_world.c
@@ -798,7 +798,9 @@ GC_INNER void GC_push_all_stacks(void)
# endif
for (i = 0; i < THREAD_TABLE_SZ; i++) {
for (p = GC_threads[i]; p != 0; p = p -> next) {
- GC_bool is_self = FALSE;
+# if defined(E2K) || defined(IA64)
+ GC_bool is_self = FALSE;
+# endif
if (p -> flags & FINISHED) continue;
++nthreads;
@@ -821,8 +823,10 @@ GC_INNER void GC_push_all_stacks(void)
}
# endif
# endif
- is_self = TRUE;
found_me = TRUE;
+# if defined(E2K) || defined(IA64)
+ is_self = TRUE;
+# endif
} else {
lo = (ptr_t)AO_load((volatile AO_t *)&p->stop_info.stack_ptr);
# ifdef IA64