[clang] clang/ARM: Derive -pg mcount name from the triple environment (PR #220822)

Peter Smith via cfe-commits cfe-commits at lists.llvm.org
Thu Sep 3 10:53:05 PDT 2026


https://github.com/smithp35 commented:

Looking through https://github.com/llvm/llvm-project/issues/24343 it seems like an explicit decision was made to not use the triple https://github.com/llvm/llvm-project/issues/24343#issuecomment-980947617 

I'm not entirely sure about the reasoning though. Perhaps it was for the benefit of non glibc C-libraries or for older glibc versions without `__gnu_mcount_nc`. Maybe in 2026 it makes more sense to default to the `__gnu_mcount_nc` and `_mcount` for GNU environments.


https://github.com/llvm/llvm-project/pull/220822


More information about the cfe-commits mailing list