diff options
| author | Trevor Gross <t.gross35@gmail.com> | 2025-04-29 12:28:25 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-04-29 12:28:25 -0400 |
| commit | ff6a9800a38f30161ea7f819e2808f9bf97b5864 (patch) | |
| tree | 293f2e2e50223905110b3f460c08ee5381742ee1 /compiler/rustc_data_structures/src | |
| parent | 561f6a13094100ad0023b3c8a92f643165ae1cfc (diff) | |
| parent | 6aea9f40ce2140a00b7d85bf036150b7e62bfa54 (diff) | |
| download | rust-ff6a9800a38f30161ea7f819e2808f9bf97b5864.tar.gz rust-ff6a9800a38f30161ea7f819e2808f9bf97b5864.zip | |
Rollup merge of #140433 - BjoernLange:master, r=nnethercote
Replace the \01__gnu_mcount_nc to LLVM intrinsic for additional ARM targets
This is an extension to #113814 which seems to have missed two targets which also need this patch for instrumentation with `-Z instrument-mcount` to work correctly.
For anyone who might stumble over this issue again in the future: As a workaround one can dump the current target configuration using
```
rustc +nightly -Z unstable-options --target armv7-unknown-linux-gnueabihf --print target-spec-json
```
(assuming `armv7-unknown-linux-gnueabihf` is the target to build for) add the line
```
"llvm-mcount-intrinsic": "llvm.arm.gnu.eabi.mcount",
```
and compile with
```
RUSTFLAGS="-Z instrument-mcount -C passes=ee-instrument<post-inline>" cargo +nightly build -Z build-std --target <path to directory with modified target config>/armv7-unknown-linux-gnueabihf.json
```
It might be necessary to set the compiler for cross compiling using something like
```
export TARGET_CC=arm-linux-gnueabihf-gcc
```
Diffstat (limited to 'compiler/rustc_data_structures/src')
0 files changed, 0 insertions, 0 deletions
