summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLudovic Courtes <ludo@gnu.org>2013-05-22 23:16:46 +0200
committerIvan Maidanski <ivmai@mail.ru>2013-05-22 23:16:46 +0200
commit14a5128999f6590969741e7e74a2eee4157ab0ad (patch)
tree97ecd38aa18ab5b0f201d4091e3930442c9ea588
parentb6664ad715fb835990da5c3b8e97cf036997958e (diff)
Default to use libc_stack_end in single-threaded GC on glibc targets
* include/private/gcconfig.h (USE_LIBC_PRIVATES): Define for glibc (unless DONT_USE_LIBC_PRIVATES is defined).
-rw-r--r--include/private/gcconfig.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/private/gcconfig.h b/include/private/gcconfig.h
index e017c4b..36e19ed 100644
--- a/include/private/gcconfig.h
+++ b/include/private/gcconfig.h
@@ -2369,6 +2369,11 @@
# endif
# endif
+#if defined(__GLIBC__) && !defined(DONT_USE_LIBC_PRIVATES)
+ /* Use glibc's stack-end marker. */
+# define USE_LIBC_PRIVATES
+#endif
+
#if defined(LINUX_STACKBOTTOM) && defined(NO_PROC_STAT) \
&& !defined(USE_LIBC_PRIVATES)
/* This combination will fail, since we have no way to get */