summaryrefslogtreecommitdiff
path: root/boehm-gc
diff options
context:
space:
mode:
authorpinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4>2004-07-07 03:08:14 +0000
committerpinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4>2004-07-07 03:08:14 +0000
commit964a088ed2e0951c37bffe5e72024dd801f4318a (patch)
tree6ecc1a6939ab85bd96b21e6e8547a7e1410adc4a /boehm-gc
parentb7d0753ca9291fd9b88bbf5796f7bbfbafb9fcc6 (diff)
downloadgcc-964a088ed2e0951c37bffe5e72024dd801f4318a.tar.gz
2004-07-06 Andrew Pinski <apinski@apple.com>
* os-dep.c (GC_task_self): Declare as static and remove the second declaration. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@84188 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'boehm-gc')
-rw-r--r--boehm-gc/ChangeLog5
-rw-r--r--boehm-gc/os_dep.c4
2 files changed, 6 insertions, 3 deletions
diff --git a/boehm-gc/ChangeLog b/boehm-gc/ChangeLog
index f8588e91d4e..fe72330740f 100644
--- a/boehm-gc/ChangeLog
+++ b/boehm-gc/ChangeLog
@@ -1,3 +1,8 @@
+2004-07-06 Andrew Pinski <apinski@apple.com>
+
+ * os-dep.c (GC_task_self): Declare as static
+ and remove the second declaration.
+
2004-06-20 Andreas Tobler <a.tobler@schweiz.ch>
* Makefile.am: Add rule for .S files to fix bootstrap on
diff --git a/boehm-gc/os_dep.c b/boehm-gc/os_dep.c
index fd195e1c806..2defc7174a1 100644
--- a/boehm-gc/os_dep.c
+++ b/boehm-gc/os_dep.c
@@ -2137,7 +2137,7 @@ GC_bool is_ptrfree;
/* Using vm_protect (mach syscall) over mprotect (BSD syscall) seems to
decrease the likelihood of some of the problems described below. */
#include <mach/vm_map.h>
- extern mach_port_t GC_task_self;
+ static mach_port_t GC_task_self;
#define PROTECT(addr,len) \
if(vm_protect(GC_task_self,(vm_address_t)(addr),(vm_size_t)(len), \
FALSE,VM_PROT_READ) != KERN_SUCCESS) { \
@@ -3312,8 +3312,6 @@ extern kern_return_t exception_raise_state_identity(
#define MAX_EXCEPTION_PORTS 16
-static mach_port_t GC_task_self;
-
static struct {
mach_msg_type_number_t count;
exception_mask_t masks[MAX_EXCEPTION_PORTS];