about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMartin Liska <martin.liska@hey.com>2025-06-22 16:32:54 +0200
committerMartin Liska <martin.liska@hey.com>2025-06-22 16:32:54 +0200
commit75674e2c2a21986ca07507fc98129e5be164e7ca (patch)
tree7ebf478c9be1b121ea8c3e797fe5f7a5554d2289
parenta30f1783fe136d92545423dd30b12eb619973cdb (diff)
downloadrust-75674e2c2a21986ca07507fc98129e5be164e7ca.tar.gz
rust-75674e2c2a21986ca07507fc98129e5be164e7ca.zip
cranelift: fix target feature name type: "fxsr"
-rw-r--r--compiler/rustc_codegen_cranelift/src/lib.rs2
-rw-r--r--compiler/rustc_span/src/symbol.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_codegen_cranelift/src/lib.rs b/compiler/rustc_codegen_cranelift/src/lib.rs
index 07ea29f3024..8e34436fb5e 100644
--- a/compiler/rustc_codegen_cranelift/src/lib.rs
+++ b/compiler/rustc_codegen_cranelift/src/lib.rs
@@ -184,7 +184,7 @@ impl CodegenBackend for CraneliftCodegenBackend {
         // FIXME return the actually used target features. this is necessary for #[cfg(target_feature)]
         let target_features = if sess.target.arch == "x86_64" && sess.target.os != "none" {
             // x86_64 mandates SSE2 support and rustc requires the x87 feature to be enabled
-            vec![sym::fsxr, sym::sse, sym::sse2, Symbol::intern("x87")]
+            vec![sym::fxsr, sym::sse, sym::sse2, Symbol::intern("x87")]
         } else if sess.target.arch == "aarch64" {
             match &*sess.target.os {
                 "none" => vec![],
diff --git a/compiler/rustc_span/src/symbol.rs b/compiler/rustc_span/src/symbol.rs
index da69f6c4492..684b1781b44 100644
--- a/compiler/rustc_span/src/symbol.rs
+++ b/compiler/rustc_span/src/symbol.rs
@@ -1080,7 +1080,6 @@ symbols! {
         fs_create_dir,
         fsub_algebraic,
         fsub_fast,
-        fsxr,
         full,
         fundamental,
         fused_iterator,
@@ -1088,6 +1087,7 @@ symbols! {
         future_drop_poll,
         future_output,
         future_trait,
+        fxsr,
         gdb_script_file,
         ge,
         gen_blocks,