1
Fork 0

Enable varargs support for AAPCS calling convention

This is the default calling convention for ARM - it is used for extern "C",
therefore it supports varargs.
This commit is contained in:
Soveu 2023-09-14 23:21:39 +02:00
parent ccf817b9bb
commit eea6149e03
4 changed files with 8 additions and 4 deletions

View file

@ -117,7 +117,7 @@ use rustc_hir::def::DefKind;
fluent_messages! { "../messages.ftl" }
fn require_c_abi_if_c_variadic(tcx: TyCtxt<'_>, decl: &hir::FnDecl<'_>, abi: Abi, span: Span) {
const CONVENTIONS_UNSTABLE: &str = "`C`, `cdecl`, `win64`, `sysv64` or `efiapi`";
const CONVENTIONS_UNSTABLE: &str = "`C`, `cdecl`, `aapcs`, `win64`, `sysv64` or `efiapi`";
const CONVENTIONS_STABLE: &str = "`C` or `cdecl`";
const UNSTABLE_EXPLAIN: &str =
"using calling conventions other than `C` or `cdecl` for varargs functions is unstable";