diff options
| author | The Miri Cronjob Bot <miri@cron.bot> | 2025-06-19 05:03:01 +0000 |
|---|---|---|
| committer | The Miri Cronjob Bot <miri@cron.bot> | 2025-06-19 05:03:01 +0000 |
| commit | e9433426a147729941a0812170bc3d55167e40ef (patch) | |
| tree | df9e05e98680825c3510dfc194014a072688e513 /compiler/rustc_codegen_gcc/src/gcc_util.rs | |
| parent | 19c6f75929349d6f1cd2e058dfac25dbb5ee8b43 (diff) | |
| parent | 644469e9613253321d09887ffe0fb2c98528ee21 (diff) | |
| download | rust-e9433426a147729941a0812170bc3d55167e40ef.tar.gz rust-e9433426a147729941a0812170bc3d55167e40ef.zip | |
Merge from rustc
Diffstat (limited to 'compiler/rustc_codegen_gcc/src/gcc_util.rs')
| -rw-r--r-- | compiler/rustc_codegen_gcc/src/gcc_util.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/rustc_codegen_gcc/src/gcc_util.rs b/compiler/rustc_codegen_gcc/src/gcc_util.rs index d90e66aea31..2e00d5fcb61 100644 --- a/compiler/rustc_codegen_gcc/src/gcc_util.rs +++ b/compiler/rustc_codegen_gcc/src/gcc_util.rs @@ -143,6 +143,7 @@ pub(crate) fn global_gcc_features(sess: &Session, diagnostics: bool) -> Vec<Stri // To find a list of GCC's names, check https://gcc.gnu.org/onlinedocs/gcc/Function-Attributes.html pub fn to_gcc_features<'a>(sess: &Session, s: &'a str) -> SmallVec<[&'a str; 2]> { let arch = if sess.target.arch == "x86_64" { "x86" } else { &*sess.target.arch }; + // cSpell:disable match (arch, s) { // FIXME: seems like x87 does not exist? ("x86", "x87") => smallvec![], @@ -181,6 +182,7 @@ pub fn to_gcc_features<'a>(sess: &Session, s: &'a str) -> SmallVec<[&'a str; 2]> ("aarch64", "sve2-bitperm") => smallvec!["sve2-bitperm", "neon"], (_, s) => smallvec![s], } + // cSpell:enable } fn arch_to_gcc(name: &str) -> &str { |
