[all-commits] [llvm/llvm-project] eafbab: [EntryExitInstrumenter][AArch64][RISCV][LoongArch]...

Yingwei Zheng via All-commits all-commits at lists.llvm.org
Tue Dec 31 23:02:30 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: eafbab6facb0627e11757efb1eae98f806387b55
      https://github.com/llvm/llvm-project/commit/eafbab6facb0627e11757efb1eae98f806387b55
  Author: Yingwei Zheng <dtcxzyw2333 at gmail.com>
  Date:   2025-01-01 (Wed, 01 Jan 2025)

  Changed paths:
    M llvm/lib/Transforms/Utils/EntryExitInstrumenter.cpp
    A llvm/test/Transforms/EntryExitInstrumenter/mcount-with-frompc.ll

  Log Message:
  -----------
  [EntryExitInstrumenter][AArch64][RISCV][LoongArch] Pass `__builtin_return_address(0)` into `_mcount` (#121107)

On RISC-V, AArch64, and LoongArch, the `_mcount` function takes
`__builtin_return_address(0)` as an argument since
`__builtin_return_address(1)` is not available on these platforms. This
patch fixes the argument passing to match the behavior of glibc/gcc.

Closes https://github.com/llvm/llvm-project/issues/121103.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list