summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Maidanski <ivmai@mail.ru>2013-06-08 09:52:02 +0200
committerIvan Maidanski <ivmai@mail.ru>2013-06-08 09:52:02 +0200
commitb2a030e0db5e0d53b660a8d2c6615274bb8b375b (patch)
tree7527a5f2535c797caa91e99aa22aea54a0396ec5
parent609db7fdb652b554ae8b1958d5b4a462ec758ba0 (diff)
Remove unused UTHREAD_SP_OFFSET macro (OpenBSD)
* include/private/gcconfig.h (UTHREAD_SP_OFFSET): Do not define (since no longer used for OpenBSD because pthread_stackseg_np is used to get thread stack pointer).
-rw-r--r--include/private/gcconfig.h36
1 files changed, 9 insertions, 27 deletions
diff --git a/include/private/gcconfig.h b/include/private/gcconfig.h
index 36e19ed..601a3f5 100644
--- a/include/private/gcconfig.h
+++ b/include/private/gcconfig.h
@@ -885,9 +885,7 @@
# ifdef OPENBSD
# define OS_TYPE "OPENBSD"
# define ALIGNMENT 4
-# ifdef GC_OPENBSD_THREADS
-# define UTHREAD_SP_OFFSET 268
-# else
+# ifndef GC_OPENBSD_THREADS
# include <sys/param.h>
# include <uvm/uvm_extern.h>
# define STACKBOTTOM ((ptr_t) USRSTACK)
@@ -1090,9 +1088,7 @@
# endif
# ifdef OPENBSD
# define OS_TYPE "OPENBSD"
-# ifdef GC_OPENBSD_THREADS
-# define UTHREAD_SP_OFFSET 232
-# else
+# ifndef GC_OPENBSD_THREADS
# include <sys/param.h>
# include <uvm/uvm_extern.h>
# define STACKBOTTOM ((ptr_t) USRSTACK)
@@ -1373,9 +1369,7 @@
# endif
# ifdef OPENBSD
# define OS_TYPE "OPENBSD"
-# ifdef GC_OPENBSD_THREADS
-# define UTHREAD_SP_OFFSET 176
-# else
+# ifndef GC_OPENBSD_THREADS
# include <sys/param.h>
# include <uvm/uvm_extern.h>
# define STACKBOTTOM ((ptr_t) USRSTACK)
@@ -1610,9 +1604,7 @@
# ifdef OPENBSD
# define OS_TYPE "OPENBSD"
# define ALIGNMENT 4
-# ifdef GC_OPENBSD_THREADS
-# define UTHREAD_SP_OFFSET 808
-# else
+# ifndef GC_OPENBSD_THREADS
# include <sys/param.h>
# include <uvm/uvm_extern.h>
# define STACKBOTTOM ((ptr_t) USRSTACK)
@@ -1688,9 +1680,7 @@
# endif /* LINUX */
# ifdef OPENBSD
# define OS_TYPE "OPENBSD"
-# ifdef GC_OPENBSD_THREADS
-# define UTHREAD_SP_OFFSET 520
-# else
+# ifndef GC_OPENBSD_THREADS
# include <sys/param.h>
# include <uvm/uvm_extern.h>
# define STACKBOTTOM ((ptr_t) USRSTACK)
@@ -1720,9 +1710,7 @@
# ifdef OPENBSD
# define OS_TYPE "OPENBSD"
# define ELF_CLASS ELFCLASS64
-# ifdef GC_OPENBSD_THREADS
-# define UTHREAD_SP_OFFSET 816
-# else
+# ifndef GC_OPENBSD_THREADS
# include <sys/param.h>
# include <uvm/uvm_extern.h>
# define STACKBOTTOM ((ptr_t) USRSTACK)
@@ -2055,9 +2043,7 @@
# ifdef OPENBSD
# define ALIGNMENT 4
# define OS_TYPE "OPENBSD"
-# ifdef GC_OPENBSD_THREADS
-# define UTHREAD_SP_OFFSET 176
-# else
+# ifndef GC_OPENBSD_THREADS
# include <sys/param.h>
# include <uvm/uvm_extern.h>
# define STACKBOTTOM ((ptr_t) USRSTACK)
@@ -2114,9 +2100,7 @@
# endif
# ifdef OPENBSD
# define OS_TYPE "OPENBSD"
-# ifdef GC_OPENBSD_THREADS
-# define UTHREAD_SP_OFFSET 332
-# else
+# ifndef GC_OPENBSD_THREADS
# include <sys/param.h>
# include <uvm/uvm_extern.h>
# define STACKBOTTOM ((ptr_t) USRSTACK)
@@ -2180,9 +2164,7 @@
# ifdef OPENBSD
# define OS_TYPE "OPENBSD"
# define ELF_CLASS ELFCLASS64
-# ifdef GC_OPENBSD_THREADS
-# define UTHREAD_SP_OFFSET 400
-# else
+# ifndef GC_OPENBSD_THREADS
# include <sys/param.h>
# include <uvm/uvm_extern.h>
# define STACKBOTTOM ((ptr_t) USRSTACK)