Преглед на файлове

aot compiler: Disable musttail for thumb (#2771)

Error is reported when executing `wamrc --target=thumb -o <aot_file> <wasm_file>`:
```
LLVM ERROR: failed to perform tail call elimination on a call site marked musttail
Aborted (core dumped)
```
Wenyong Huang преди 2 години
родител
ревизия
dd0556a729
променени са 1 файла, в които са добавени 7 реда и са изтрити 0 реда
  1. 7 0
      core/iwasm/compilation/aot_llvm.c

+ 7 - 0
core/iwasm/compilation/aot_llvm.c

@@ -153,6 +153,13 @@ aot_target_precheck_can_use_musttail(const AOTCompContext *comp_ctx)
          */
         return false;
     }
+    if (strstr(comp_ctx->target_arch, "thumb")) {
+        /*
+         * cf.
+         * https://github.com/bytecodealliance/wasm-micro-runtime/issues/2412
+         */
+        return false;
+    }
     /*
      * x86-64/i386: true
      *