diff options
author | Stan Shebs <stanshebs@google.com> | 2019-04-26 13:37:12 -0700 |
---|---|---|
committer | Stan Shebs <stanshebs@google.com> | 2019-04-26 13:37:12 -0700 |
commit | e9ba4bf620d6f1588dbf648c827ec80bf62d3b04 (patch) | |
tree | 0dd690795a9604ec7b875a06c8adc20b4c12cffd /malloc | |
parent | 181e58d7477e72dca69a9bd9fdb32ecb01903e0a (diff) | |
download | glibc-e9ba4bf620d6f1588dbf648c827ec80bf62d3b04.tar.gz glibc-e9ba4bf620d6f1588dbf648c827ec80bf62d3b04.tar.xz glibc-e9ba4bf620d6f1588dbf648c827ec80bf62d3b04.zip |
Add another workaround for clang problem with sizes in asm
Diffstat (limited to 'malloc')
-rw-r--r-- | malloc/memusage.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/malloc/memusage.c b/malloc/memusage.c index 6d5f8f4f40..3ebd481ece 100644 --- a/malloc/memusage.c +++ b/malloc/memusage.c @@ -112,7 +112,11 @@ struct entry }; static struct entry buffer[2 * DEFAULT_BUFFER_SIZE]; +#ifdef __clang__ +static long buffer_cnt; +#else static uatomic32_t buffer_cnt; +#endif static struct entry first; |