diff options
| author | Ralf Jung <post@ralfj.de> | 2025-05-20 08:39:20 +0200 |
|---|---|---|
| committer | Amanieu d'Antras <amanieu@gmail.com> | 2025-05-21 10:39:23 +0000 |
| commit | b58ce625a2d707b7660d9aa645186ffd97636e1e (patch) | |
| tree | 538b5341e1b5eb38b0fbe092708955541294f473 | |
| parent | 7b995254d498a0172a49d3e3d8de2b40cbeec524 (diff) | |
| download | rust-b58ce625a2d707b7660d9aa645186ffd97636e1e.tar.gz rust-b58ce625a2d707b7660d9aa645186ffd97636e1e.zip | |
allow aarch64_softfloat_neon for backwards compatibility
| -rw-r--r-- | library/stdarch/crates/core_arch/src/aarch64/mod.rs | 7 | ||||
| -rw-r--r-- | library/stdarch/crates/core_arch/src/arm_shared/mod.rs | 6 |
2 files changed, 13 insertions, 0 deletions
diff --git a/library/stdarch/crates/core_arch/src/aarch64/mod.rs b/library/stdarch/crates/core_arch/src/aarch64/mod.rs index 8020fde5901..f4b9b1c3025 100644 --- a/library/stdarch/crates/core_arch/src/aarch64/mod.rs +++ b/library/stdarch/crates/core_arch/src/aarch64/mod.rs @@ -6,6 +6,13 @@ //! [arm_ref]: http://infocenter.arm.com/help/topic/com.arm.doc.ihi0073a/IHI0073A_arm_neon_intrinsics_ref.pdf //! [arm_dat]: https://developer.arm.com/technologies/neon/intrinsics +#![cfg_attr( + all(target_arch = "aarch64", target_abi = "softfloat"), + // Just allow the warning: anyone soundly using the intrinsics has to enable + // the target feature, and that will generate a warning for them. + allow(aarch64_softfloat_neon) +)] + mod mte; #[unstable(feature = "stdarch_aarch64_mte", issue = "129010")] pub use self::mte::*; diff --git a/library/stdarch/crates/core_arch/src/arm_shared/mod.rs b/library/stdarch/crates/core_arch/src/arm_shared/mod.rs index dcfa500085e..527b53de99d 100644 --- a/library/stdarch/crates/core_arch/src/arm_shared/mod.rs +++ b/library/stdarch/crates/core_arch/src/arm_shared/mod.rs @@ -47,6 +47,12 @@ //! //! - [ACLE Q2 2018](https://developer.arm.com/docs/101028/latest) +#![cfg_attr( + all(target_arch = "aarch64", target_abi = "softfloat"), + // Just allow the warning: anyone soundly using the intrinsics has to enable + // the target feature, and that will generate a warning for them. + allow(aarch64_softfloat_neon) +)] // Only for 'neon' submodule #![allow(non_camel_case_types)] |
