From: Wilco Dijkstra Date: Wed, 18 Oct 2017 11:20:55 +0000 (+0100) Subject: Fix build failure on tilepro due to unsupported atomics X-Git-Tag: glibc-2.27~664 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2c2245b92ccf6344b324d17d8f94ccd3b8c559c6;p=thirdparty%2Fglibc.git 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. --- diff --git a/ChangeLog b/ChangeLog index f9ca5387059..448be4793d4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2017-10-18 Wilco Dijkstra + + * malloc/malloc.c (malloc_state): Use int for have_fastchunks since + not all targets support atomics on bool. + 2017-10-17 Joseph Myers * include/float.h [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && diff --git a/malloc/malloc.c b/malloc/malloc.c index 51db44f61bf..6b789685ad8 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];