diff options
| author | Björn Barwinski <bjoern.lange@tu-dortmund.de> | 2025-04-29 08:15:23 +0200 |
|---|---|---|
| committer | Björn Barwinski <bjoern.lange@tu-dortmund.de> | 2025-04-29 08:15:23 +0200 |
| commit | 6aea9f40ce2140a00b7d85bf036150b7e62bfa54 (patch) | |
| tree | 8754109056446c267ba05c302ed10ed3b2e3a88c | |
| parent | a932eb36f8adf6c8cdfc450f063943da3112d621 (diff) | |
| download | rust-6aea9f40ce2140a00b7d85bf036150b7e62bfa54.tar.gz rust-6aea9f40ce2140a00b7d85bf036150b7e62bfa54.zip | |
Replace the \01__gnu_mcount_nc to LLVM intrinsic for additional ARM targets
| -rw-r--r-- | compiler/rustc_target/src/spec/targets/armv5te_unknown_linux_gnueabi.rs | 1 | ||||
| -rw-r--r-- | compiler/rustc_target/src/spec/targets/armv7_unknown_linux_gnueabihf.rs | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/compiler/rustc_target/src/spec/targets/armv5te_unknown_linux_gnueabi.rs b/compiler/rustc_target/src/spec/targets/armv5te_unknown_linux_gnueabi.rs index 52e786de3ed..7b93672dbe0 100644 --- a/compiler/rustc_target/src/spec/targets/armv5te_unknown_linux_gnueabi.rs +++ b/compiler/rustc_target/src/spec/targets/armv5te_unknown_linux_gnueabi.rs @@ -20,6 +20,7 @@ pub(crate) fn target() -> Target { max_atomic_width: Some(32), mcount: "\u{1}__gnu_mcount_nc".into(), has_thumb_interworking: true, + llvm_mcount_intrinsic: Some("llvm.arm.gnu.eabi.mcount".into()), ..base::linux_gnu::opts() }, } diff --git a/compiler/rustc_target/src/spec/targets/armv7_unknown_linux_gnueabihf.rs b/compiler/rustc_target/src/spec/targets/armv7_unknown_linux_gnueabihf.rs index 3b5a337b4f1..a3b35d658e9 100644 --- a/compiler/rustc_target/src/spec/targets/armv7_unknown_linux_gnueabihf.rs +++ b/compiler/rustc_target/src/spec/targets/armv7_unknown_linux_gnueabihf.rs @@ -22,6 +22,7 @@ pub(crate) fn target() -> Target { features: "+v7,+vfp3,-d32,+thumb2,-neon".into(), max_atomic_width: Some(64), mcount: "\u{1}__gnu_mcount_nc".into(), + llvm_mcount_intrinsic: Some("llvm.arm.gnu.eabi.mcount".into()), ..base::linux_gnu::opts() }, } |
