summaryrefslogtreecommitdiff
path: root/mach_dep.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 /mach_dep.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 'mach_dep.c')
-rw-r--r--mach_dep.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mach_dep.c b/mach_dep.c
index 19e688dd..969947c2 100644
--- a/mach_dep.c
+++ b/mach_dep.c
@@ -17,7 +17,7 @@
#include <stdio.h>
#include <setjmp.h>
-#if defined(OS2) || defined(CX_UX)
+#if defined(OS2) || defined(CX_UX) || defined(__CC_ARM)
# define _setjmp(b) setjmp(b)
# define _longjmp(b,v) longjmp(b,v)
#endif