about summary refs log tree commit diff
path: root/compiler/rustc_codegen_gcc/src/lib.rs
diff options
context:
space:
mode:
authorJosh Stone <jistone@redhat.com>2022-08-16 15:46:17 -0700
committerJosh Stone <jistone@redhat.com>2022-08-16 15:46:17 -0700
commit147032a61896db76e97bfde9fa0e711fd5e62b08 (patch)
treefe718c61f030fa8755318bb313e9207e28573883 /compiler/rustc_codegen_gcc/src/lib.rs
parent5746c752f4e3f294cd252f7dd611a1908b12dd8e (diff)
downloadrust-147032a61896db76e97bfde9fa0e711fd5e62b08.tar.gz
rust-147032a61896db76e97bfde9fa0e711fd5e62b08.zip
Move the cast_float_to_int fallback code to GCC
Now that we require at least LLVM 13, that codegen backend is always
using its intrinsic `fptosi.sat` and `fptoui.sat` conversions, so it
doesn't need the manual implementation. However, the GCC backend still
needs it, so we can move all of that code down there.
Diffstat (limited to 'compiler/rustc_codegen_gcc/src/lib.rs')
-rw-r--r--compiler/rustc_codegen_gcc/src/lib.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_codegen_gcc/src/lib.rs b/compiler/rustc_codegen_gcc/src/lib.rs
index 8a206c0368f..223466fb9b5 100644
--- a/compiler/rustc_codegen_gcc/src/lib.rs
+++ b/compiler/rustc_codegen_gcc/src/lib.rs
@@ -19,6 +19,7 @@
 #![warn(rust_2018_idioms)]
 #![warn(unused_lifetimes)]
 
+extern crate rustc_apfloat;
 extern crate rustc_ast;
 extern crate rustc_codegen_ssa;
 extern crate rustc_data_structures;