mirror of
git://sourceware.org/git/glibc.git
synced 2025-04-18 14:30:43 +08:00
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. (cherry-picked from 2c2245b92ccf6344b324d17d8f94ccd3b8c559c6)
This commit is contained in:
parent
aa5be982ea
commit
a546080d51
@ -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.
|
||||
|
@ -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];
|
||||
|
Loading…
x
Reference in New Issue
Block a user