about summary refs log tree commit diff
path: root/malloc
diff options
context:
space:
mode:
authorStan Shebs <stanshebs@google.com>2019-04-26 13:37:12 -0700
committerStan Shebs <stanshebs@google.com>2019-04-26 13:37:12 -0700
commite9ba4bf620d6f1588dbf648c827ec80bf62d3b04 (patch)
tree0dd690795a9604ec7b875a06c8adc20b4c12cffd /malloc
parent181e58d7477e72dca69a9bd9fdb32ecb01903e0a (diff)
downloadglibc-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.c4
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;