[2.26][COMMITTED 3/3] Fix build failure on tilepro due to unsupported atomics
Siddhesh Poyarekar
siddhesh@sourceware.org
Sun Jan 1 00:00:00 GMT 2017
From: Wilco Dijkstra <wdijkstr@arm.com>
* malloc/malloc.c (malloc_state): Use int for have_fastchunks since
not all targets support atomics on bool.
(cherry-picked from 2c2245b92ccf6344b324d17d8f94ccd3b8c559c6)
---
ChangeLog | 5 +++++
malloc/malloc.c | 3 ++-
2 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/ChangeLog b/ChangeLog
index 67d3503..d67ad03 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2017-10-18 Wilco Dijkstra <wdijkstr@arm.com>
+
+ * malloc/malloc.c (malloc_state): Use int for have_fastchunks since
+ not all targets support atomics on bool.
+
2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
* malloc/malloc.c (FASTCHUNKS_BIT): Remove.
diff --git a/malloc/malloc.c b/malloc/malloc.c
index 37e3c44..dd9f699 100644
--- a/malloc/malloc.c
+++ b/malloc/malloc.c
@@ -1689,7 +1689,8 @@ struct malloc_state
int flags;
/* Set if the fastbin chunks contain recently inserted free blocks. */
- bool have_fastchunks;
+ /* Note this is a bool but not all targets support atomics on booleans. */
+ int have_fastchunks;
/* Fastbins */
mfastbinptr fastbinsY[NFASTBINS];
--
2.7.5
More information about the Libc-stable
mailing list