rust/compiler/rustc_target/src
ChoKyuWon 3bd54c14bc
Replace the \01__gnu_mcount_nc to LLVM intrinsic for ARM
Current `-Zinstrument-mcount` for ARM32 use the `\01__gnu_mcount_nc`
directly for its instrumentation function.

However, the LLVM does not use this mcount function directly, but it wraps
it to intrinsic, `llvm.arm.gnu.eabi.mcount` and the transform pass also
only handle the intrinsic.

As a result, current `-Zinstrument-mcount` not work on ARM32.
Refer: https://github.com/namhyung/uftrace/issues/1764

This commit replaces the mcount name from native function to the
LLVM intrinsic so that the transform pass can handle it.

Signed-off-by: ChoKyuWon <kyuwoncho18@gmail.com>
2023-08-18 01:52:40 +09:00
..
abi i686-windows: make requested alignment > 4 special case apply transitively 2023-07-14 17:48:13 -04:00
asm asm: loongarch64: Drop efiapi 2023-05-12 17:22:47 +08:00
spec Replace the \01__gnu_mcount_nc to LLVM intrinsic for ARM 2023-08-18 01:52:40 +09:00
json.rs Improve generating Custom entry function 2022-11-11 01:04:39 +05:30
lib.rs i686-windows: pass arguments with requested alignment > 4 indirectly 2023-07-10 19:19:38 -04:00
tests.rs Use serde_json for target spec json 2022-06-03 16:46:19 +00:00