mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-01-24 22:44:59 +08:00
os-dep.c (GC_task_self): Declare as static and remove the second declaration.
2004-07-06 Andrew Pinski <apinski@apple.com> * os-dep.c (GC_task_self): Declare as static and remove the second declaration. From-SVN: r84188
This commit is contained in:
parent
185fca74fc
commit
634330f5e3
@ -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
|
||||
|
@ -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];
|
||||
|
Loading…
Reference in New Issue
Block a user