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)
```
This commit is contained in:
Wenyong Huang 2023-11-16 11:05:23 +08:00 committed by GitHub
parent 9a32e0672c
commit dd0556a729
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -153,6 +153,13 @@ aot_target_precheck_can_use_musttail(const AOTCompContext *comp_ctx)
*/ */
return false; 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 * x86-64/i386: true
* *