Skip to content

Commit 25a2ba2

Browse files
committed
Use preserve_mostcc for extern "rust-cold"
As experimentation in 115242 has shown looks better than `coldcc`. And *don't* use a different convention for cold on Windows, because that actually ends up making things worse. cc tracking issue 97544
1 parent 3f4145e commit 25a2ba2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/abi/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ fn clif_sig_from_fn_abi<'tcx>(
3939
pub(crate) fn conv_to_call_conv(sess: &Session, c: Conv, default_call_conv: CallConv) -> CallConv {
4040
match c {
4141
Conv::Rust | Conv::C => default_call_conv,
42-
Conv::RustCold => CallConv::Cold,
42+
Conv::Cold | Conv::PreserveMost | Conv::PreserveAll => CallConv::Cold,
4343
Conv::X86_64SysV => CallConv::SystemV,
4444
Conv::X86_64Win64 => CallConv::WindowsFastcall,
4545

0 commit comments

Comments
 (0)