rustc: Add a new "C stack cdecl" native ABI
This commit is contained in:
parent
657e3ffaf5
commit
f7d0c1cec3
6 changed files with 14 additions and 1 deletions
|
@ -2012,7 +2012,11 @@ fn parse_item_native_mod(p: parser, attrs: [ast::attribute]) -> @ast::item {
|
|||
abi = ast::native_abi_rust_intrinsic;
|
||||
} else if str::eq(t, "x86stdcall") {
|
||||
abi = ast::native_abi_x86stdcall;
|
||||
} else { p.fatal("unsupported abi: " + t); }
|
||||
} else if str::eq(t, "c-stack-cdecl") {
|
||||
abi = ast::native_abi_c_stack_cdecl;
|
||||
} else {
|
||||
p.fatal("unsupported abi: " + t);
|
||||
}
|
||||
}
|
||||
expect_word(p, "mod");
|
||||
let id = parse_ident(p);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue