]> 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)
committerWilco Dijkstra <wdijkstr@arm.com>
Wed, 18 Oct 2017 11:20:55 +0000 (12:20 +0100)
        * malloc/malloc.c (malloc_state): Use int for have_fastchunks since
        not all targets support atomics on bool.

ChangeLog
malloc/malloc.c

index f9ca538705908184442da51a9b666484e795f2d8..448be4793d4a8bf70b856c48aaa96eae066cb04c 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  Joseph Myers  <joseph@codesourcery.com>
 
        * include/float.h [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 &&
index 51db44f61bfcde0c320e36892e110b7ade25a717..6b789685ad842ca4a1de6564d691ee4d13d399fa 100644 (file)
@@ -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];