summaryrefslogtreecommitdiff
path: root/ptr_chck.c
diff options
context:
space:
mode:
authorivmai <ivmai>2011-04-26 10:47:02 +0000
committerIvan Maidanski <ivmai@mail.ru>2011-07-26 21:06:58 +0400
commit782c5a03ff94e2e2c4ec90ab40e6302a083e8abf (patch)
treeed5e6d1672cacabacd71de8cc06df4bd46e07e6c /ptr_chck.c
parent6b733bad5f8e5c496333ab85774a532ca5b73349 (diff)
downloadbdwgc-782c5a03ff94e2e2c4ec90ab40e6302a083e8abf.tar.gz
2011-04-26 Ivan Maidanski <ivmai@mail.ru>
* alloc.c: Don't include sys/types.h for ArmCC. * dyn_load.c: Ditto. * os_dep.c: Ditto. * mach_dep.c (_setjmp, _longjmp): Redirect to setjmp/longjmp for ArmCC. * mark.c (GC_noop): Define specially for ArmCC. * include/private/gc_priv.h (GC_noop): Ditto. * misc.c (GC_init): Don't test pointers comparison for ArmCC. * misc.c: Don't include unistd.h for ArmCC. * os_dep.c (pages_executable): Rename to GC_pages_executable; make STATIC. * os_dep.c (GC_unix_mmap_get_mem): Don't define for ArmCC. * ptr_chck.c (GC_is_visible): Explicitly cast (GC_DS_PER_OBJECT-GC_INDIR_PER_OBJ_BIAS) to word (to suppress a compiler warning). * include/private/gcconfig.h: Recognize __arm. * include/private/gcconfig.h (HBLKPTR): Define for ArmCC. * include/private/gcconfig.h (HBLKPTR): Add parentheses for "bytes" argument.
Diffstat (limited to 'ptr_chck.c')
-rw-r--r--ptr_chck.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ptr_chck.c b/ptr_chck.c
index 9b0da0c1..d8076e84 100644
--- a/ptr_chck.c
+++ b/ptr_chck.c
@@ -242,7 +242,7 @@ GC_API void * GC_CALL GC_is_visible(void *p)
} else {
ptr_t type_descr = *(ptr_t *)base;
descr = *(word *)(type_descr
- - (descr - (GC_DS_PER_OBJECT
+ - (descr - (word)(GC_DS_PER_OBJECT
- GC_INDIR_PER_OBJ_BIAS)));
}
goto retry;