aboutsummaryrefslogtreecommitdiff
path: root/boehm-gc/include
diff options
context:
space:
mode:
authorMark Mitchell <mark@codesourcery.com>2002-05-19 17:36:14 +0000
committerMark Mitchell <mmitchel@gcc.gnu.org>2002-05-19 17:36:14 +0000
commit61039cd09eed677f690943bca7dc0d122e19ddcb (patch)
tree1f800047367210ef317746691a9f99de9e9d83a0 /boehm-gc/include
parentbce0deb2b67e54e705e83b6236445d743468c1f2 (diff)
downloadgcc-61039cd09eed677f690943bca7dc0d122e19ddcb.zip
gcc-61039cd09eed677f690943bca7dc0d122e19ddcb.tar.gz
gcc-61039cd09eed677f690943bca7dc0d122e19ddcb.tar.bz2
irix_threads.cc (GC_pthread_detach): Do not use REAL_FUNC.
* irix_threads.cc (GC_pthread_detach): Do not use REAL_FUNC. (GC_pthread_create): Fix typo. (GC_TRY_LOCK): Likewise. * include/private/gc_locks.h (GC_test_and_set): Only take one one argument. (LOCK): Adjust appropriately. * include/private/gc_priv.h (SIG_SUSPEND): Use SIGRTMIN if _SIGRTMIN is unavailable. From-SVN: r53636
Diffstat (limited to 'boehm-gc/include')
-rw-r--r--boehm-gc/include/private/gc_locks.h6
-rw-r--r--boehm-gc/include/private/gc_priv.h6
2 files changed, 8 insertions, 4 deletions
diff --git a/boehm-gc/include/private/gc_locks.h b/boehm-gc/include/private/gc_locks.h
index 5ea1e54..95beedd 100644
--- a/boehm-gc/include/private/gc_locks.h
+++ b/boehm-gc/include/private/gc_locks.h
@@ -221,9 +221,9 @@
# ifdef MIPS
# if __mips < 3 || !(defined (_ABIN32) || defined(_ABI64)) \
|| !defined(_COMPILER_VERSION) || _COMPILER_VERSION < 700
-# define GC_test_and_set(addr, v) test_and_set(addr,v)
+# define GC_test_and_set(addr) test_and_set(addr, 1)
# else
-# define GC_test_and_set(addr, v) __test_and_set(addr,v)
+# define GC_test_and_set(addr) __test_and_set(addr,1)
# define GC_clear(addr) __lock_release(addr);
# define GC_CLEAR_DEFINED
# endif
@@ -431,7 +431,7 @@
# define NO_THREAD (pthread_t)(-1)
# define UNSET_LOCK_HOLDER() GC_lock_holder = NO_THREAD
# define I_HOLD_LOCK() (pthread_equal(GC_lock_holder, pthread_self()))
-# define LOCK() { if (GC_test_and_set(&GC_allocate_lock, 1)) GC_lock(); }
+# define LOCK() { if (GC_test_and_set(&GC_allocate_lock)) GC_lock(); }
# define UNLOCK() GC_clear(&GC_allocate_lock);
extern VOLATILE GC_bool GC_collecting;
# define ENTER_GC() \
diff --git a/boehm-gc/include/private/gc_priv.h b/boehm-gc/include/private/gc_priv.h
index b1526aa..5465c78 100644
--- a/boehm-gc/include/private/gc_priv.h
+++ b/boehm-gc/include/private/gc_priv.h
@@ -1916,7 +1916,11 @@ void GC_err_puts GC_PROTO((GC_CONST char *s));
# define SIG_SUSPEND SIGPWR
# endif
# else /* !GC_LINUX_THREADS */
-# define SIG_SUSPEND _SIGRTMIN + 6
+# if defined(_SIGRTMIN)
+# define SIG_SUSPEND _SIGRTMIN + 6
+# else
+# define SIG_SUSPEND SIGRTMIN + 6
+# endif
# endif
# endif /* !SIG_SUSPEND */