diff options
| author | Dylan DPC <99973273+Dylan-DPC@users.noreply.github.com> | 2022-08-30 16:56:09 +0530 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-08-30 16:56:09 +0530 |
| commit | c57a932c3f1235d93076a3925b226b9bdb9108fc (patch) | |
| tree | 95e7eddae0fed6364be846cc415486d4c7d884b9 /compiler/rustc_codegen_gcc/src/lib.rs | |
| parent | 15e2e5185a22207b18d2cbc47a48b39e63e84cd0 (diff) | |
| parent | 147032a61896db76e97bfde9fa0e711fd5e62b08 (diff) | |
| download | rust-c57a932c3f1235d93076a3925b226b9bdb9108fc.tar.gz rust-c57a932c3f1235d93076a3925b226b9bdb9108fc.zip | |
Rollup merge of #100653 - cuviper:fptoint_sat, r=michaelwoerister,antoyo
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.rs | 1 |
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; |
