From ddd897505b2b0c3225531fd2af45803cc80bd5d0 Mon Sep 17 00:00:00 2001 From: Dmitry Rozhkov Date: Fri, 30 Oct 2020 18:25:23 +0200 Subject: [PATCH] Fix code model check for aarch64 __AARCH64_CMODEL_SMALL__ macro was introduced in clang 11.0.0, not 9.0.0 --- tcmalloc/internal/percpu_rseq_aarch64.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tcmalloc/internal/percpu_rseq_aarch64.S b/tcmalloc/internal/percpu_rseq_aarch64.S index b453c0b2a..7c411c3bc 100644 --- a/tcmalloc/internal/percpu_rseq_aarch64.S +++ b/tcmalloc/internal/percpu_rseq_aarch64.S @@ -121,7 +121,7 @@ label##_trampoline: \ */ #define ENCODE_SIZE(label) .size label, . - label /* We are assuming small memory model. */ -#if __clang_major__ >= 9 && !defined(__AARCH64_CMODEL_SMALL__) +#if __clang_major__ >= 11 && !defined(__AARCH64_CMODEL_SMALL__) #error "Memory model not supported!" #endif