From dbd000c1ce0233a61e21107b89ed9ac039084998 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Mon, 10 Apr 2023 12:47:25 -0500 Subject: [PATCH] Change `asm` to `__asm__` in `helpers.c` (#6188) This is an attempt to fix #6177 since according to [this reference][1] some modes of compilation require `__asm__` instead of `asm`. [1]: https://en.cppreference.com/w/c/language/asm --- crates/runtime/src/helpers.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/runtime/src/helpers.c b/crates/runtime/src/helpers.c index b036b06a88..96019669de 100644 --- a/crates/runtime/src/helpers.c +++ b/crates/runtime/src/helpers.c @@ -75,7 +75,7 @@ __attribute__((weak, noinline)) #endif void __jit_debug_register_code() { #ifndef CFG_TARGET_OS_windows - asm(""); + __asm__(""); #endif } @@ -88,7 +88,7 @@ struct JITDescriptor { #ifdef CFG_TARGET_OS_windows // export required for external access. - __declspec(dllexport) + __declspec(dllexport) #else // Note the `weak` linkage here which is the same purpose as above. We want to // let other runtimes be able to override this since our own definition isn't