Skip to content

Commit 4d9b5c1

Browse files
authored
Rollup merge of rust-lang#39472 - est31:unadjusted_only_for_win, r=nagisa
Don't use "unadjusted" ABI on non windows platforms We introduced the unadjusted ABI to work around wrong (buggy) ABI expectations by LLVM on Windows [1]. Therefore, it should be solely used on Windows and not on other platforms, like right now is the case. [1]: see this comment for details rust-lang#38482 (comment)
2 parents aba3835 + 3c16139 commit 4d9b5c1

File tree

1 file changed

+3
-3
lines changed
  • src/libcompiler_builtins

1 file changed

+3
-3
lines changed

src/libcompiler_builtins/lib.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -652,17 +652,17 @@ pub mod reimpls {
652652
}
653653

654654
#[export_name="__fixunssfti"]
655-
pub extern "unadjusted" fn f32_as_u128(a: f32) -> u128 {
655+
pub extern $unadj fn f32_as_u128(a: f32) -> u128 {
656656
float_as_unsigned!(a, f32, u128)
657657
}
658658

659659
#[export_name="__fixdfti"]
660-
pub extern "unadjusted" fn f64_as_i128(a: f64) -> i128 {
660+
pub extern $unadj fn f64_as_i128(a: f64) -> i128 {
661661
float_as_signed!(a, f64, i128)
662662
}
663663

664664
#[export_name="__fixsfti"]
665-
pub extern "unadjusted" fn f32_as_i128(a: f32) -> i128 {
665+
pub extern $unadj fn f32_as_i128(a: f32) -> i128 {
666666
float_as_signed!(a, f32, i128)
667667
}
668668

0 commit comments

Comments
 (0)