aboutsummaryrefslogtreecommitdiff
path: root/malloc/malloc.c
diff options
context:
space:
mode:
authorWilco Dijkstra <wdijkstr@arm.com>2017-10-18 12:20:55 +0100
committerWilco Dijkstra <wdijkstr@arm.com>2017-10-18 12:20:55 +0100
commit2c2245b92ccf6344b324d17d8f94ccd3b8c559c6 (patch)
tree284f5460798f126c408be5e4d7f976e7fe906a02 /malloc/malloc.c
parent13c92696d2f66e94e4f04248550cc2b8f283bfd0 (diff)
downloadglibc-2c2245b92ccf6344b324d17d8f94ccd3b8c559c6.tar
glibc-2c2245b92ccf6344b324d17d8f94ccd3b8c559c6.tar.gz
glibc-2c2245b92ccf6344b324d17d8f94ccd3b8c559c6.tar.bz2
glibc-2c2245b92ccf6344b324d17d8f94ccd3b8c559c6.zip
Fix build failure on tilepro due to unsupported atomics
* malloc/malloc.c (malloc_state): Use int for have_fastchunks since not all targets support atomics on bool.
Diffstat (limited to 'malloc/malloc.c')
-rw-r--r--malloc/malloc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/malloc/malloc.c b/malloc/malloc.c
index 51db44f61b..6b789685ad 100644
--- a/malloc/malloc.c
+++ b/malloc/malloc.c
@@ -1673,7 +1673,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];