This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Tiny fix for HEAD
- From: Thomas Schwinge <schwinge-list-gnu-glibc-alpha at nic-nac-project dot de>
- To: libc-alpha at sources dot redhat dot com
- Date: Sun, 28 Aug 2005 02:27:26 +0200
- Subject: Tiny fix for HEAD
Hi!
The attached fix is needed to keep HEAD buildable in environments that
don't support '__thread'.
Please apply.
Regards,
Thomas
2005-08-28 Thomas Schwinge <schwinge@nic-nac-project.de>
malloc/memusage.c: Only use __thread if USE___THREAD.
Index: malloc/memusage.c
===================================================================
RCS file: /cvs/glibc/libc/malloc/memusage.c,v
retrieving revision 1.12
diff -u -r1.12 memusage.c
--- malloc/memusage.c 20 Aug 2005 01:12:37 -0000 1.12
+++ malloc/memusage.c 27 Aug 2005 23:43:02 -0000
@@ -83,7 +83,11 @@
static memusage_cntr_t decreasing_mremap;
static memusage_size_t current_heap;
static memusage_size_t peak_use[3];
+#if USE___THREAD
static __thread uintptr_t start_sp;
+#else
+static uintptr_t start_sp;
+#endif
/* A few macros to make the source more readable. */
#define peak_heap peak_use[0]