* pthread_support.c (GC_get_nprocs): Don't define for Android.
* pthread_support.c (GC_dummy_thread_local): Don't test
GC_LINUX_THREADS.
* include/gc_config_macros.h (GC_ADD_CALLER, GC_RETURN_ADDR):
Define for Android.
+2011-04-24 Ivan Maidanski <ivmai@mail.ru>
+
+ * pthread_support.c (GC_get_nprocs): Don't define for Android.
+ * pthread_support.c (GC_dummy_thread_local): Don't test
+ GC_LINUX_THREADS.
+ * include/gc_config_macros.h (GC_ADD_CALLER, GC_RETURN_ADDR):
+ Define for Android.
+
2011-04-24 Ivan Maidanski <ivmai@mail.ru>
* mach_dep.c (NO_GETCONTEXT): Move to gcconfig.h.
/* This may also be desirable if it is possible but expensive to */
/* retrieve the call chain. */
#if (defined(__linux__) || defined(__NetBSD__) || defined(__OpenBSD__) \
- || defined(__FreeBSD__) || defined(__DragonFly__)) \
- && !defined(GC_CAN_SAVE_CALL_STACKS)
+ || defined(__FreeBSD__) || defined(__DragonFly__) \
+ || defined(PLATFORM_ANDROID)) && !defined(GC_CAN_SAVE_CALL_STACKS)
# define GC_ADD_CALLER
# if __GNUC__ >= 3 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 95)
/* gcc knows how to retrieve return address, but we don't know */
}
#endif /* IA64 */
-#if defined(GC_LINUX_THREADS) && !defined(NACL)
+#if defined(GC_LINUX_THREADS) && !defined(PLATFORM_ANDROID) && !defined(NACL)
/* Return the number of processors. */
STATIC int GC_get_nprocs(void)
{
}
#endif /* GC_DARWIN_THREADS || ... */
-#if defined(GC_LINUX_THREADS) && defined(INCLUDE_LINUX_THREAD_DESCR)
+#ifdef INCLUDE_LINUX_THREAD_DESCR
__thread int GC_dummy_thread_local;
#endif