From 58073f929fd40859d75b47f3936a062386d2773d Mon Sep 17 00:00:00 2001 From: Alexander Medvednikov Date: Wed, 6 May 2026 20:14:08 +0300 Subject: [PATCH] libgc: support aarch64 with tcc --- thirdparty/libgc/include/gc/gc.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/thirdparty/libgc/include/gc/gc.h b/thirdparty/libgc/include/gc/gc.h index 47531983e..c55a241bd 100644 --- a/thirdparty/libgc/include/gc/gc.h +++ b/thirdparty/libgc/include/gc/gc.h @@ -1784,9 +1784,10 @@ GC_API int GC_CALL GC_invoke_finalizers(void); * associated external resource is still in use. * The function is sometimes called to keep some object alive. */ -#if defined(__GNUC__) && !defined(__INTEL_COMPILER) \ - && !(defined(__APPLE__) && defined(__arm__) && defined(__TINYC__)) -/* TCC (as of v0.9.28rc) does not support asm on macOS/arm. */ +#if defined(__GNUC__) && !defined(__INTEL_COMPILER) \ + && !(defined(__APPLE__) && (defined(__arm__) || defined(__aarch64__)) \ + && defined(__TINYC__)) +/* TCC (as of v0.9.28rc) does not support asm on macOS/arm (32 or 64 bit). */ # if defined(__CHERI_PURE_CAPABILITY__) || defined(__TINYC__) # define GC_reachable_here(ptr) \ __asm__ __volatile__(" " : : "g"(ptr) : "memory") -- 2.39.5