]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Fix build failure on tilepro due to unsupported atomics
authorWilco Dijkstra <wdijkstr@arm.com>
Wed, 18 Oct 2017 11:20:55 +0000 (12:20 +0100)
committerSiddhesh Poyarekar <siddhesh@sourceware.org>
Thu, 16 Nov 2017 06:53:00 +0000 (12:23 +0530)
        * malloc/malloc.c (malloc_state): Use int for have_fastchunks since
        not all targets support atomics on bool.

(cherry-picked from 2c2245b92ccf6344b324d17d8f94ccd3b8c559c6)

ChangeLog
malloc/malloc.c

index 67d3503afe238169e6b68dc44aacf74f105a0ebf..d67ad031bc77e3b5eacb1d265aaf84cd3d400c06 100644 (file)
--- 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.
index 37e3c44e72a37e65c138bd196cc93069661ea419..dd9f699d978675d96be05b8c6dca470268c19d11 100644 (file)
@@ -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];